Creating a distro on a sim card
Evgeniy Karyakin
anthropophagite at gmail.com
Sun Nov 30 00:32:56 CET 2008
Christopher J. White:
> With Debian on a 2GB microSD card, here's my boot cmdline
> (cat /proc/cmdline):
>
> glamo_mci.sd_max_clk=10000000 rootfstype=jffs2 root=/dev/mtdblock6
> console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot
> mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(u-boot),0x00040000(u-boot_env),0x00800000(kernel),0x000a0000(splash),0x00040000(factory),0x0f6a0000(rootfs) rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5
Don't anybody see a problem with this settings? There's two pairs of
parameters rootfstype and root; who get the priority? This redundancy is
because environment has the following variables:
bootargs_base=rootfstype=jffs2 root=/dev/mtdblock6
console=ttySAC2,115200 console=tty0 loglevel=4 regular_boot
menu_1=Boot from microSD (FAT+ext2): setenv bootargs ${bootargs_base}
rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5 ${mtdparts} ro; mmcinit;
fatload mmc 1 0x32000000 ${sd_image_name}; bootm 0x32000000
bootargs_base has one pair, menu_1 has another. So, who's in charge
here?
Also, is there a reason to mount rootfs read-only? I try to boot
from uSD card and get several error messages like this:
tar: cannot create directory 'devices/snd': Read-only fiel system
tar: cannot create directory 'devices/input': Read-only fiel system
tar: cannot create directory 'devices/bus': Read-only fiel system
tar: cannot create directory 'devices/net': Read-only fiel system
tar: cannot create directory 'devices/loop': Read-only fiel system
and then
cp: cannot stat '/lib/udev/devices/*': No such file or directory
then
Remounting root filesystem
(so it is remounted rw now?) then
mount: special device /dev/mmcblk0p1 does not exist
(this is stock 512Mb uSD). After that it tries to startup ALSA (with "No
soundcard found" resulting message) and network (resulting "done"), and
after that it just stall forever. Rootfs is yesterday's testing tarball
taken from http://downloads.openmoko.org/daily/testing/.
More information about the community
mailing list