Re: Creating a distro on a sim card
In my ongoing quest, I did find out I was not actually booting from the SD device, so I have printed out the instructions, and for the past week attempting to get the device configured and booting properly So far this is what I am accomplishing Still attempting to get my OM to boot from the SD card. If I fillow the instructions at http://wiki.openmoko.org/wiki/Booting_from_SD#Prepare_the_SD_card and format the 1st partition vfat, I get this error when booting (using magnifying glass); [2.68000] mmcblk0: error -84 sending read/write command [2.68000] buffer I/O error on device mmcblk0, logical block 0 [2.68500] mmcblk0: error -110 sending read/write command [2.69000] buffer I/O error on device mmcblk0, logical block 0 [8.15000] kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) if I change 1st partition to ext2, I get this error; unable to read image uImage.bin and then pops back into the boot menu I'm at a loss to figure this out. Anymore help would be greatly appreciated PGP.sig Description: This is a digitally signed message part ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
and format the 1st partition vfat, I get this error when booting (using magnifying glass); [2.68000]mmcblk0: error -84 sending read/write command [2.68000]buffer I/O error on device mmcblk0, logical block 0 [2.68500]mmcblk0: error -110 sending read/write command [2.69000]buffer I/O error on device mmcblk0, logical block 0 [8.15000]kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) What did you do to the 2nd partition? You need to format that ext2, and put a rootfs on that. Judging from the last error message, there is no defined or formated 2nd partition. Paul -- If you can talk brilliantly about a problem, it can create the consoling illusion that it has been mastered. -Stanley Kubrick http://www.nlpagan.net Running on Mandriva Linux 2009 and Ubuntu 8.10 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
On Sat, 2008-11-29 at 12:45 -0800, Rodney Myers wrote: if I change 1st partition to ext2, I get this error; unable to read image uImage.bin and then pops back into the boot menu If you change the SD partition to ext2, you have change the boot_args to something like in the NAND flash. The key difference, I believe, is changing the rootfstype to ext2. With Debian on a 2GB microSD card, here's my boot cmdline (cat /proc/cmdline): glamo_mci.sd_max_clk=1000 rootfstype=jffs2 root=/dev/mtdblock6 console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot mtdparts=physmap-flash:-(nor);neo1973-nand:0x0004(u-boot),0x0004(u-boot_env),0x0080(kernel),0x000a(splash),0x0004(factory),0x0f6a(rootfs) rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5 For details on setting bootargs variable, see: http://docs.openmoko.org/trac/ticket/1743 ...cj ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
On Nov 29, 2008, at 1:04 PM, Paul wrote: and format the 1st partition vfat, I get this error when booting (using magnifying glass); [2.68000]mmcblk0: error -84 sending read/write command [2.68000]buffer I/O error on device mmcblk0, logical block 0 [2.68500]mmcblk0: error -110 sending read/write command [2.69000]buffer I/O error on device mmcblk0, logical block 0 [8.15000]kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) What did you do to the 2nd partition? You need to format that ext2, and put a rootfs on that. Judging from the last error message, there is no defined or formated 2nd partition. Paul 2nd partition is an ext2 partition with the rootfs.*.gz untarred as per the wiki. I just checked again, and this is what I have for the SD card; I'm doing this on a Debian Stable machine /dev/sdd1 7.8M 1.9M 5.5M 26% /home/rodney/MokoKernel /dev/sdd2 949M 157M 745M 18% /home/rodney/Moko fdisk -l /dev/sdd Disk /dev/sdd: 1019 MB, 1019216384 bytes 14 heads, 45 sectors/track, 3159 cylinders Units = cylinders of 630 * 512 = 322560 bytes Device Boot Start End Blocks Id System /dev/sdd1 1 268167+ 6 FAT16 /dev/sdd2 273159 986895 83 Linux ls -la MokoKernel/ total 1872 drwxr-xr-x 2 root root 16384 1969-12-31 16:00 . drwxr-xr-x 81 rodney rodney4096 2008-11-29 11:18 .. -rwxr-xr-x 1 root root 1894716 2008-11-29 13:48 uImage.bin ls -la Moko/ total 84 drwxr-xr-x 18 root root4096 2008-09-15 17:24 . drwxr-xr-x 81 rodney rodney 4096 2008-11-29 11:18 .. drwxr-xr-x 2 root root4096 2008-11-29 12:12 bin drwxr-xr-x 2 root root4096 2008-09-15 17:25 boot drwxr-xr-x 2 root root4096 2008-08-06 23:27 dev drwxr-xr-x 46 root root4096 2008-11-29 12:12 etc drwxr-xr-x 3 root root4096 2008-09-15 17:23 home drwxr-xr-x 4 root root4096 2008-08-07 15:26 lib drwx-- 2 root root 16384 2008-11-29 12:11 lost+found drwxr-xr-x 10 root root4096 2008-09-15 17:23 media drwxr-xr-x 3 root root4096 2008-11-29 12:12 mnt drwxr-xr-x 3 root root4096 2008-08-06 23:28 opt drwxr-xr-x 2 root root4096 2008-08-06 23:27 proc drwxr-xr-x 2 root root4096 2008-11-29 12:12 sbin drwxr-xr-x 2 root root4096 2008-08-06 23:27 sys drwxrwxrwt 2 root root4096 2008-08-06 23:27 tmp drwxr-xr-x 10 root root4096 2008-08-06 23:27 usr drwxr-xr-x 7 root root4096 2008-08-06 23:26 var Bloody wierd. Mounted, looked at, umounted, the SD card, reinserted into the, and it appears to be boot, but the IP address I edited into the /etc/network/interfaces card. does not appear to have taken. This is why it is so frustrating. One time, nothing works, then things start working PGP.sig Description: This is a digitally signed message part ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
Christopher J. White: With Debian on a 2GB microSD card, here's my boot cmdline (cat /proc/cmdline): glamo_mci.sd_max_clk=1000 rootfstype=jffs2 root=/dev/mtdblock6 console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot mtdparts=physmap-flash:-(nor);neo1973-nand:0x0004(u-boot),0x0004(u-boot_env),0x0080(kernel),0x000a(splash),0x0004(factory),0x0f6a(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 0x3200 ${sd_image_name}; bootm 0x3200 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/. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
On Sun, 2008-11-30 at 02:32 +0300, Evgeniy Karyakin wrote: Christopher J. White: With Debian on a 2GB microSD card, here's my boot cmdline (cat /proc/cmdline): glamo_mci.sd_max_clk=1000 rootfstype=jffs2 root=/dev/mtdblock6 console=ttySAC2,115200 console=tty0 loglevel=8 regular_boot mtdparts=physmap-flash:-(nor);neo1973-nand:0x0004(u-boot),0x0004(u-boot_env),0x0080(kernel),0x000a(splash),0x0004(factory),0x0f6a(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 0x3200 ${sd_image_name}; bootm 0x3200 bootargs_base has one pair, menu_1 has another. So, who's in charge here? LOLI didn't even notice that. After several *hours* of working on it (and dumping the 8GB card I bought that just would not work), I finally found a combo that worked. Needless to say the above works fine for me with my Debian distro, so it must just take the last assignment as the final and go from there. You are right that it's a combo of boot_args plus the indirection from menu_1 using boot_args. ...cj ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
On Nov 22, 2008, at 7:28 PM, William Kenworthy wrote: Have a look at /etc/defaults/dropbear - does it lock ssh to usb0 only? BillK This is what is my /etc/defaults/dropbear says DROPBEAR_PORT=`ip addr list usb0 | awk 'BEGIN { FS=[ /]+ } /inet / { print $3 }'`:22 PGP.sig Description: This is a digitally signed message part ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
Replace with DROPBEAR_PORT=*:22 to connect via wifi, usb etc. BillK On Sun, 2008-11-23 at 12:00 -0800, Rodney Myers wrote: On Nov 22, 2008, at 7:28 PM, William Kenworthy wrote: Have a look at /etc/defaults/dropbear - does it lock ssh to usb0 only? BillK This is what is my /etc/defaults/dropbear says DROPBEAR_PORT=`ip addr list usb0 | awk 'BEGIN { FS=[ /]+ } /inet / { print $3 }'`:22 -- William Kenworthy [EMAIL PROTECTED] Home in Perth! ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
On Nov 22, 2008, at 2:54 PM, Christian Adams wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi are you sure 192.168.1.202 is really the ip of your freerunner? from reading the pingtimes i would think you ping your local interface not your freerunner which would have ping-times around 1 to 5 ms or so .. ciao, christian (morlac) adams If I unplug the phone, then it says no route to host, so I am pretty sure it is the phone, and I know what the /etc/network/interface states Am 22.11.2008 um 23:40 schrieb Rodney Myers: ssh [EMAIL PROTECTED] The authenticity of host '192.168.1.202 (192.168.1.202)' can't be established. RSA key fingerprint is 75:c6:91:b7:60:a9:16:b1:19:ed: 5a:c7:2f:d3:39:c4. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.202' (RSA) to the list of known hosts. [EMAIL PROTECTED]'s password: Permission denied, please try again. [EMAIL PROTECTED]'s password: Permission denied, please try again. [EMAIL PROTECTED]'s password: Permission denied (publickey,password). what happens when you enter your root-pw here? ;) I'm sitting back at the command prompt, and does nothing. and I get brought back to the shell ping 192.168.1.202 PING 192.168.1.202 (192.168.1.202) 56(84) bytes of data. 64 bytes from 192.168.1.202: icmp_seq=1 ttl=64 time=0.061 ms 64 bytes from 192.168.1.202: icmp_seq=2 ttl=64 time=0.042 ms 64 bytes from 192.168.1.202: icmp_seq=3 ttl=64 time=0.044 ms 64 bytes from 192.168.1.202: icmp_seq=4 ttl=64 time=0.046 ms 64 bytes from 192.168.1.202: icmp_seq=5 ttl=64 time=0.047 ms --- 192.168.1.202 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3997ms rtt min/avg/max/mdev = 0.042/0.048/0.061/0.006 ms\ PGP.sig Description: This is a digitally signed message part ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
Have a look at /etc/defaults/dropbear - does it lock ssh to usb0 only? BillK On Sat, 2008-11-22 at 19:03 -0800, Rodney Myers wrote: On Nov 22, 2008, at 2:54 PM, Christian Adams wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi are you sure 192.168.1.202 is really the ip of your freerunner? from reading the pingtimes i would think you ping your local interface not your freerunner which would have ping-times around 1 to 5 ms or so .. ciao, christian (morlac) adams If I unplug the phone, then it says no route to host, so I am pretty sure it is the phone, and I know what the /etc/network/interface states Am 22.11.2008 um 23:40 schrieb Rodney Myers: ssh [EMAIL PROTECTED] The authenticity of host '192.168.1.202 (192.168.1.202)' can't be established. RSA key fingerprint is 75:c6:91:b7:60:a9:16:b1:19:ed: 5a:c7:2f:d3:39:c4. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.202' (RSA) to the list of known hosts. [EMAIL PROTECTED]'s password: Permission denied, please try again. [EMAIL PROTECTED]'s password: Permission denied, please try again. [EMAIL PROTECTED]'s password: Permission denied (publickey,password). what happens when you enter your root-pw here? ;) I'm sitting back at the command prompt, and does nothing. and I get brought back to the shell ping 192.168.1.202 PING 192.168.1.202 (192.168.1.202) 56(84) bytes of data. 64 bytes from 192.168.1.202: icmp_seq=1 ttl=64 time=0.061 ms 64 bytes from 192.168.1.202: icmp_seq=2 ttl=64 time=0.042 ms 64 bytes from 192.168.1.202: icmp_seq=3 ttl=64 time=0.044 ms 64 bytes from 192.168.1.202: icmp_seq=4 ttl=64 time=0.046 ms 64 bytes from 192.168.1.202: icmp_seq=5 ttl=64 time=0.047 ms --- 192.168.1.202 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3997ms rtt min/avg/max/mdev = 0.042/0.048/0.061/0.006 ms\ ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- William Kenworthy [EMAIL PROTECTED] Home in Perth! ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Creating a distro on a sim card
Hi Rodney Was that a question for me? I see you posted that to the list Yes I believe these are the instructions to install and boot an OS on the SD Now may be you can fix your IP problem without doing that Do you know what steps led you to have a problem and not connect to your phone anymore ? Thanks Alan Rodney Myers wrote: I was pointed to this link to help with my previous problem; http://wiki.openmoko.org/wiki/Booting_from_SD I was wondering if that read, was all that it took to get a functioning OS on the SD card, and then the ability to copy onto the phone? Thanks ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community