[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to boot from a build in cardreader in acer one - device ist mmcblk0



Hi all,

while trying set up a live system booting from a build in cardreader in an 
acer one 110 I run in the following problems:

I put the kernel and initrd.img into the boot-partition on the harddisk (ssd)
because the cardreader isn't bootable.

But unfortunately the the initrd-scripts could't find the live image on the 
cardreader device.

The cardreader device is correctly recognized by the kernel an the sdcard 
gets the devicenname mmcblk0. The first partition: mmcblk0p1.

But in any way the cardreader doesnt't behave like another block device. I 
thought it could be because of the strange numbering of partitions like 
mmcblk0, mmcblk0p1 instead of mmcblk0, mmcblk01 - according to sda, sda1, ...

After booting the initrd-scripts tries to find a live image in the /dev/sda 
partitions but after a while I get a shell from initrd. Via shell I can mount 
the parition e.g. mount -t ext2 /dev/mmcblk0p1 /mnt - for me the evidence 
that the block device is correctly recognized and works.

So far I tried to identify the part in the initrd-scripts where the 
block-devices are inspected. But without result.

Also I tried to make only one partition in the device so mmcblk0 is already 
the blockdevice where the image is in the subdir /live.

Now the initrd script fails with the error:

 panic No supported filesystem images found at /live.

Any Ideas?

How to modify the initrd in a way that also mmcbkl0p1 is queried for the live 
filesystem?

The logfile live.log (while starting in debug mode) tells:

+ tailpid=945
+ + .tail /scripts/live-functions
 -f live.log
+ . /scripts/functions
+ . /live.vars
+ Arguments
+ PRESEEDS=
+ cat /proc/cmdline
+ LOCALE=de_DE.UTF-8
+ export LOCALE
+ KBD=de
+ export KBD
+ USERNAME=carsten
+ LIVECONF=changed
+ export USERNAME LIVECONF
+ HOSTNAME=debian
+ LIVECONF=changed
+ export HOSTNAME LIVECONF
+ NOPERSISTENT=Yes
+ export NOPERSISTENT
+ DEBUG=Yes
+ export DEBUG
+ set -x
+ [ -z  ]
+ [  = /dev/nfs ]
+ [  = /dev/cifs ]
+ [ -z  ]
+ MODULE=filesystem
+ export MODULE
+ [ -z  ]
+ UNIONTYPE=aufs
+ export UNIONTYPE
+ set_usplash_timeout
+ [ -x /sbin/usplash_write ]
+ [ -x /sbin/splashy_update ]
+ maybe_break live-premount
+ [  = live-premount ]
+ log_begin_msg Running /scripts/live-premount
+ [ -x /sbin/usplash_write ]
+ _log_msg Begin: Running /scripts/live-premount ... 
+ [ n = y ]
+ printf Begin: Running /scripts/live-premount ... 
Begin: Running /scripts/live-premount ... + run_scripts /scripts/live-premount
+ initdir=/scripts/live-premount
+ [ ! -d /scripts/live-premount ]
+ get_prereqs
+ set_initlist
+ unset initlist
+ [ /scripts/live-premount/modules = /scripts/live-premount/* ]
+ [ ! -x /scripts/live-premount/modules ]
+ [ -d /scripts/live-premount/modules ]
+ initlist= modules
+ /scripts/live-premount/modules prereqs
+ tmp=udev
+ eval array_modules="udev"
+ array_modules=udev
+ reduce_prereqs
+ unset runlist
+ set -- modules
+ i=1
+ [ 1 -ne 0 ]
+ oldi=1
+ reduce_satisfied modules
+ render array_modules
+ eval echo -n ${array_modules}
+ echo -n udev
+ deplist=udev
+ unset tmpdeplist
+ [ ! -x /scripts/live-premount/udev ]
+ continue
+ deplist=
+ eval array_modules=""
+ array_modules=
+ render array_modules
+ eval echo -n ${array_modules}
+ echo -n
+ count_unsatisfied
+ set --
+ return 0
+ cnt=0
+ [ 0 -eq 0 ]
+ runlist= modules
+ pop_list_item modules modules
+ item=modules
+ shift
+ set -- modules
+ unset tmppop
+ [ modules = modules ]
+ continue
+ initlist=
+ i=0
+ [ 0 -eq 1 ]
+ [ 0 -ne 0 ]
+ call_scripts
+ [  = y ]
+ /scripts/live-premount/modules
+ [ -e /conf/param.conf ]
+ log_end_msg
+ [ -x /sbin/usplash_write ]
+ _log_msg done.\n
+ [ n = y ]
+ printf done.\n
done.
+ set_usplash_timeout
+ [ -x /sbin/usplash_write ]
+ [ -x /sbin/splashy_update ]
+ [ ! -z  ]
+ [ ! -z  ]
+ [ ! -z  ]
+ [ ! -z  ]
+ [ -n  ]
+ i=0
+ [ 0 -lt 60 ]
+ find_livefs 0
+ timeout=0
+ [ -n  ]
+ [ ! -z  ]
+ + echo /sys/block/mmcblk0   /sys/block/ram0 \n
+ grep -vE /(loop|ram|dm-|fd)
 /sys/block/ram2 /sys/block/ram3 /sys/block/ram4 /sys/block/ram5 /sys/block/ram6 /sys/block/ram7 /sys/block/ram8 /sys/block/ram9 /sys/block/sda
+ sys2dev /sys/block/mmcblk0
+ sysdev=/block/mmcblk0
+ udevinfo -q name -p /block/mmcblk0
+ echo /dev/mmcblk0
+ devname=/dev/mmcblk0
+ get_fstype /dev/mmcblk0
+ local FSTYPE
+ local FSSIZE
+ is_luks /dev/mmcblk0
+ devname=/dev/mmcblk0
+ [ -x /sbin/cryptsetup ]
+ /sbin/cryptsetup isLuks /dev/mmcblk0
+ ret=234
+ return 234
+ fstype /dev/mmcblk0
+ eval FSTYPE=ext2 FSSIZE=1019215872
+ FSTYPE=ext2 FSSIZE=1019215872
+ [ ext2 != unknown ]
+ echo ext2
+ return 0
+ fstype=ext2
+ /lib/udev/cdrom_id /dev/mmcblk0
+ is_nice_device /sys/block/mmcblk0
+ sysfs_path=/block/mmcblk0
+ /lib/udev/path_id /block/mmcblk0
+ grep -E -q ID_PATH=(usb|pci-[^-]*-(ide|scsi|usb))
+ echo /block/mmcblk0
+ grep -q ^/block/vd[a-z]$
+ return 1
+ [ ext2 = squashfs -o ext2 = ext2 -o ext2 = ext3 -o ext2 = ext4 -o ext2 = 
jffs2 ]
+ ln -s /dev/mmcblk0 /dev/mmcblk0.ext2
+ echo /dev/mmcblk0.ext2
+ return 0
+ livefs_root=/dev/mmcblk0.ext2
+ [ -n /dev/mmcblk0.ext2 ]
+ break
+ [ -z /dev/mmcblk0.ext2 ]
+ [  ]
+ [  ]
+ [  ]
+ [  ]
+ [ -n  ]
+ get_mac
+ mac=
+ cat /sys/class/net/eth0/iflink
+ status=2
+ [ 2 -eq 2 ]
+ cat /sys/class/net/eth0/address
+ mac=00:1e:68:8c:e6:6b
+ echo 00:1e:68:8c:e6:6b
+ sed s/:/-/g
+ tr [a-z] [A-Z]
+ mac=00-1E-68-8C-E6-6B
+ cat /sys/class/net/lo/iflink
+ status=1
+ [ 1 -eq 2 ]
+ echo 00-1E-68-8C-E6-6B
+ mac=00-1E-68-8C-E6-6B
+ echo 00-1E-68-8C-E6-6B
+ sed s/-//g
+ mac=001E688CE66B
+ mount_images_in_directory /dev/mmcblk0.ext2 /root 001E688CE66B
+ directory=/dev/mmcblk0.ext2
+ rootmnt=/root
+ mac=001E688CE66B
+ match_files_in_dir /dev/mmcblk0.ext2/live/*.squashfs
+ local pattern=/dev/mmcblk0.ext2/live/*.squashfs
+ echo /dev/mmcblk0.ext2/live/*.squashfs
+ [ /dev/mmcblk0.ext2/live/*.squashfs != /dev/mmcblk0.ext2/live/*.squashfs ]
+ return 1
+ match_files_in_dir /dev/mmcblk0.ext2/live/*.ext2
+ local pattern=/dev/mmcblk0.ext2/live/*.ext2
+ echo /dev/mmcblk0.ext2/live/*.ext2
+ [ /dev/mmcblk0.ext2/live/*.ext2 != /dev/mmcblk0.ext2/live/*.ext2 ]
+ return 1
+ match_files_in_dir /dev/mmcblk0.ext2/live/*.ext3
+ local pattern=/dev/mmcblk0.ext2/live/*.ext3
+ echo /dev/mmcblk0.ext2/live/*.ext3
+ [ /dev/mmcblk0.ext2/live/*.ext3 != /dev/mmcblk0.ext2/live/*.ext3 ]
+ return 1
+ match_files_in_dir /dev/mmcblk0.ext2/live/*.ext4
+ local pattern=/dev/mmcblk0.ext2/live/*.ext4
+ echo /dev/mmcblk0.ext2/live/*.ext4
+ [ /dev/mmcblk0.ext2/live/*.ext4 != /dev/mmcblk0.ext2/live/*.ext4 ]
+ return 1
+ match_files_in_dir /dev/mmcblk0.ext2/live/*.jffs2
+ local pattern=/dev/mmcblk0.ext2/live/*.jffs2
+ echo /dev/mmcblk0.ext2/live/*.jffs2
+ [ /dev/mmcblk0.ext2/live/*.jffs2 != /dev/mmcblk0.ext2/live/*.jffs2 ]
+ return 1
+ match_files_in_dir /dev/mmcblk0.ext2/live/*.dir
+ local pattern=/dev/mmcblk0.ext2/live/*.dir
+ echo /dev/mmcblk0.ext2/live/*.dir
+ [ /dev/mmcblk0.ext2/live/*.dir != /dev/mmcblk0.ext2/live/*.dir ]
+ return 1
+ panic No supported filesystem images found at /live.
+ DEB_1=\033[1;31m .''`.  \033[0m
+ DEB_2=\033[1;31m: :'  : \033[0m
+ DEB_3=\033[1;31m`. `'`  \033[0m
+ DEB_4=\033[1;31m  `-    \033[0m
+ LIVELOG=\033[1;37m/live.log\033[0m
+ DEBUG=\033[1;37mdebug\033[0m
+ exec
+ exec


Reply to: