Re: Booting from large microSD (SDHC) [success]
Lothar Behrens wrote: > > Here is the problem: After first boot I couldn't use fdisk, because it > couldn't access anyhow. > My 16 GB SanDisk SD-Card at first had also a problem with fdisk (from SHR distribution), but after an `opkg upgrade` all was working fine. Bernt -- View this message in context: http://n2.nabble.com/Booting-from-large-microSD-%28SDHC%29--success--tp1473404p1688022.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
As I have posted the output of fdisk I have the partition. I was able to create the partition and see it afterwards. So I agree with you that it may the u-boot and or kernel. Mine is 2.6.24. I think it's time for flashing :-) Lothar Am 21.12.2008 um 01:54 schrieb arne anka: I have rebooted after formatting /dev/mmcblk0 /dev/mmcblk0 is the raw device, you want /dev/mmcblk0p1. look at the output from fdisk ... if it is still not there, your u-boot/kernel might be too old. are there any messages at boot? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de Lothar Behrens Heinrich-Scheufelen-Platz 2 73252 Lenningen ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
> I have rebooted after formatting /dev/mmcblk0 /dev/mmcblk0 is the raw device, you want /dev/mmcblk0p1. look at the output from fdisk ... if it is still not there, your u-boot/kernel might be too old. are there any messages at boot? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
That's done, but it doesn't create the device for partition 1. I have rebooted after formatting /dev/mmcblk0 I need to create the device nodes for the partitions before I can mount on it and I think I should then format these devices before I mount. Lothar Am 21.12.2008 um 00:54 schrieb arne anka: you need to format! mke2fs is your friend. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de Lothar Behrens Heinrich-Scheufelen-Platz 2 73252 Lenningen ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
you need to format! mke2fs is your friend. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
Hi, I have now also a 16 GB SD card (SanDisk/SDSDQ-016G-E11M) but I didn't get it run with my ASU 2008/9 from Tue, 16 Sep 2008 and uboot 1.3.2-moko12. Here is the problem: After fisrt boot I couldn't use fdisk, because it couldn't access anyhow. Then after another reboot I was able to do it. Here is my first partition: r...@om-gta02:~# fdisk /dev/mmcblk0 The number of cylinders for this disk is set to 1936. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes 255 heads, 63 sectors/track, 1936 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/mmcblk0p1 1 487 3911796 83 Linux Command (m for help): But I cannot mount it at /media/card because I haven't the device. Isn't that device created automatically ? How to create one (mknod, block type, but what mayor minor) ? Thanks Lothar Am 10.11.2008 um 23:27 schrieb Marian Flor: Am Montag, den 10.11.2008, 00:33 +0100 schrieb Lothar Behrens: I had some more look about other cards about 8GB, but if there are more users having success, I will buy this card. "The iPhone and the N810 support 16GB microSD so why shouldn't the Openmoko?" was my guess and so I gave it a try. Especially when the eaten MBR problem was only once a problem. Was it ? No. My MBR was never fragged (This would have been be fatal for me on the next morning. Of course I mean the _card's_ MBR ;-) ). The filesystem (ext2) got whacked by a suspend or "unsynced" halt command, so that fdisk did not recover upon boot. But I was able to fix the filesystem on the microSD by a manually fdisk from the other linux on the internal flash memory. Switching to ext3 may also help, but make sure that your sd card supports wear leveling. In the other case ext3 may shorten the lifecycle of the card. Also, mounting the microSD with "-noatime" should lower the stress (and extend the lifetime) of the card. Anyhow. It seems a good advice to keep a copy (printed or dd) of the microSD's MBR in a warm and dry place apart from your Freerunner. A kind closing note: Please place your answer _under_ the quoted text next time. http://wiki.openmoko.org/wiki/FAQ#On_the_lists_on_lists.openmoko.org.2C_should_replies_be_added_above_or_below_the_original_text.3F regards, Marian ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de Lothar Behrens Heinrich-Scheufelen-Platz 2 73252 Lenningen ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
I tried some SDHC cards. I created multiple partitions. The first one on 2GiB, the second one also on 2GiB and the final on the remaining free space. The problem I discovered (some time ago) was that information written to the final partition (and maybe also the second) would get corrupted very easy. When I did a rm -rf * on that partition, umounted and then mounted it again, the filenames would appear from ls. Did you test the whole cards, or did you only use the first 2GiB? -- Flemming -- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
On Mon, Nov 10, 2008 at 12:33:42AM +0100, Lothar Behrens wrote: > Thanks, > > I had some more look about other cards about 8GB, but if there are more > users having success, > I will buy this card. For me the 8 GB card which I have works also great (booting Debian from it). With older kernels the card don't works, so I have compiled it for my self. Here the informations about my card: SD-Card Informations Vendor Sandisk TypemicroSDHC Size8 GB GTA02v6 # mmcinit Card Type: SD 2.0 SDHC Manufacturer: 0x03, OEM "SD" Product name: "SU08G", revision 8.0 Serial number: 1883229435 Manufacturing date: 8/2008 MMC/SD size:3MiB Regards Alex ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
2008/11/10 Marian Flor <[EMAIL PROTECTED]>: > No. My MBR was never fragged (This would have been be fatal for me on > the next morning. Of course I mean the _card's_ MBR ;-) ). LOL! Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
Am Montag, den 10.11.2008, 00:33 +0100 schrieb Lothar Behrens: > I had some more look about other cards about 8GB, but if there are > more users having success, > I will buy this card. "The iPhone and the N810 support 16GB microSD so why shouldn't the Openmoko?" was my guess and so I gave it a try. > Especially when the eaten MBR problem was only once a problem. Was > it ? No. My MBR was never fragged (This would have been be fatal for me on the next morning. Of course I mean the _card's_ MBR ;-) ). The filesystem (ext2) got whacked by a suspend or "unsynced" halt command, so that fdisk did not recover upon boot. But I was able to fix the filesystem on the microSD by a manually fdisk from the other linux on the internal flash memory. Switching to ext3 may also help, but make sure that your sd card supports wear leveling. In the other case ext3 may shorten the lifecycle of the card. Also, mounting the microSD with "-noatime" should lower the stress (and extend the lifetime) of the card. Anyhow. It seems a good advice to keep a copy (printed or dd) of the microSD's MBR in a warm and dry place apart from your Freerunner. A kind closing note: Please place your answer _under_ the quoted text next time. http://wiki.openmoko.org/wiki/FAQ#On_the_lists_on_lists.openmoko.org.2C_should_replies_be_added_above_or_below_the_original_text.3F regards, Marian ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
Lothar Behrens wrote: > Thanks, > > I had some more look about other cards about 8GB, but if there are more > users having success, > I will buy this card. I'm successfully multi-booting with a Sandisk 8GB card. I don't remember the model number and it's not printed on the card. Uboot says this about it. The incorrect size reposted doesn't cause any problems. GTA02v5 # mmcinit Card Type: SD 2.0 SDHC Manufacturer: 0x03, OEM "SD" Product name: "SU08G", revision 8.0 Serial number: 552978875 Manufacturing date: 7/2008 MMC/SD size:3MiB > Especially when the eaten MBR problem was only once a problem. Was it ? It hasn't happened to me so far. Either it's fixed or I've just been lucky. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
Thanks, I had some more look about other cards about 8GB, but if there are more users having success, I will buy this card. Especially when the eaten MBR problem was only once a problem. Was it ? Thanks Lothar Am 08.11.2008 um 12:47 schrieb Marian Flor: Hello list members, here another FR success story: Booting and usage of a large 16GB SDHC works! My configuration and recipe: - QtExtend on flash - Debian on microSD (ext2+ext2) [1] - u-boot daily (8 Nov 2008) from [2] - Applied configure-uboot.sh from [3] - Kernel for Debian from [4] (but the kernel should not matter) - microSD card: Vendor: SanDisk Model: SDSDQ-016G-E11M Size: 16GB Speed: Class2 With this configuration I encountered first this error (output from minicom, /dev/ttyACM0) when I tried to boot directly (i.e. just pressed "power" on the FR): --- 8< --- snip --- Card Type: SD 2.0 SDHC Manufacturer: 0x03, OEM "SD" Product name: "SU16G", revision 8.0 Serial number: 2684394330 Manufacturing date: 8/2008 MMC/SD size:3MiB cmd 0x10, arg 0x200 flags 0x15 Error after cmd: 0xfffc cmd 0x11, arg 0x0 flags 0x235 Error after cmd: 0xfffc bad MBR sector signature 0x ** Bad partition 1 ** Wrong Image Format for bootm command ERROR: can't get kernel image! --- 8< --- snap --- Note that mmcinit reports a false size [5]. Booting manually from that point worked well: --- 8< --- snip --- GTA02v6 # boot Card Type: SD 2.0 SDHC Manufacturer: 0x03, OEM "SD" Product name: "SU16G", revision 8.0 Serial number: 2684394330 Manufacturing date: 8/2008 MMC/SD size:3MiB 1939024 bytes read ## Booting kernel from Legacy Image at 3200 ... Image Name: Openmoko Freerunner Kernel Created: 2008-10-03 15:57:45 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size:1938960 Bytes = 1at MB Load Address: 30008000 Entry Point: 30008000 Verifying Checksum ... OK --- 8< --- snap --- Then I modified the configure-uboot.sh, entered some idle time to let the SDHC card settle after mmcinit and applied configure-uboot.sh again to the FR: --- 8< --- snip --- --- configure-uboot.sh 2008-08-15 16:01:06.0 +0200 +++ configure-uboot-delay.sh2008-11-08 11:36:20.0 +0100 @@ -37,6 +37,7 @@ ${bootargs_base} ${mtdparts} rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5; mmcinit; + sleep 2; ext2load mmc 1 0x3200 ${sd_image_name}; bootm 0x3200 --- 8< --- snap --- Two seconds settle time is suitable for all boot situations (warm and cold boot, powered by usb or on battery). Tested. Works. :-D Note: There is still an issue with the suspend mode [6]. But my MBR was not eaten (until now ;-) ). I was able to fix a mangled filesystem on the card with a fsck.ext2 -y /dev/mmcblk0p2 after booting the Linux from flash. Enjoy! Greetings from switzerland, Marian [1] http://wiki.debian.org/DebianOnFreeRunner [2] http://downloads.openmoko.org/daily/gta02v5_and_up-u-boot.bin [3] http://pkg-fso.alioth.debian.org/freerunner/configure-uboot.sh [4] http://moko.mwester.net/dl.html#kernels [5] https://docs.openmoko.org/trac/ticket/1815 [6] http://wiki.openmoko.org/wiki/Booting_from_SD#Booting_from_SDHC_.2F_suspend_problems ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de Lothar Behrens Heinrich-Scheufelen-Platz 2 73252 Lenningen ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Booting from large microSD (SDHC) [success]
Marian Flor wrote: > Hello list members, > here another FR success story: Booting and usage of a large 16GB SDHC > works! > Wow!! Good show!!! Paul -- Success generally depends upon knowing how long it takes to succeed. -Charles de Montesquieu http://www.nlpagan.net Running on Mandriva Linux 2008 and Ubuntu 8.10 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Booting from large microSD (SDHC) [success]
Hello list members, here another FR success story: Booting and usage of a large 16GB SDHC works! My configuration and recipe: - QtExtend on flash - Debian on microSD (ext2+ext2) [1] - u-boot daily (8 Nov 2008) from [2] - Applied configure-uboot.sh from [3] - Kernel for Debian from [4] (but the kernel should not matter) - microSD card: Vendor: SanDisk Model: SDSDQ-016G-E11M Size: 16GB Speed: Class2 With this configuration I encountered first this error (output from minicom, /dev/ttyACM0) when I tried to boot directly (i.e. just pressed "power" on the FR): --- 8< --- snip --- Card Type: SD 2.0 SDHC Manufacturer: 0x03, OEM "SD" Product name: "SU16G", revision 8.0 Serial number: 2684394330 Manufacturing date: 8/2008 MMC/SD size:3MiB cmd 0x10, arg 0x200 flags 0x15 Error after cmd: 0xfffc cmd 0x11, arg 0x0 flags 0x235 Error after cmd: 0xfffc bad MBR sector signature 0x ** Bad partition 1 ** Wrong Image Format for bootm command ERROR: can't get kernel image! --- 8< --- snap --- Note that mmcinit reports a false size [5]. Booting manually from that point worked well: --- 8< --- snip --- GTA02v6 # boot Card Type: SD 2.0 SDHC Manufacturer: 0x03, OEM "SD" Product name: "SU16G", revision 8.0 Serial number: 2684394330 Manufacturing date: 8/2008 MMC/SD size:3MiB 1939024 bytes read ## Booting kernel from Legacy Image at 3200 ... Image Name: Openmoko Freerunner Kernel Created: 2008-10-03 15:57:45 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size:1938960 Bytes = 1at MB Load Address: 30008000 Entry Point: 30008000 Verifying Checksum ... OK --- 8< --- snap --- Then I modified the configure-uboot.sh, entered some idle time to let the SDHC card settle after mmcinit and applied configure-uboot.sh again to the FR: --- 8< --- snip --- --- configure-uboot.sh 2008-08-15 16:01:06.0 +0200 +++ configure-uboot-delay.sh2008-11-08 11:36:20.0 +0100 @@ -37,6 +37,7 @@ ${bootargs_base} ${mtdparts} rootfstype=ext2 root=/dev/mmcblk0p2 rootdelay=5; mmcinit; + sleep 2; ext2load mmc 1 0x3200 ${sd_image_name}; bootm 0x3200 --- 8< --- snap --- Two seconds settle time is suitable for all boot situations (warm and cold boot, powered by usb or on battery). Tested. Works. :-D Note: There is still an issue with the suspend mode [6]. But my MBR was not eaten (until now ;-) ). I was able to fix a mangled filesystem on the card with a fsck.ext2 -y /dev/mmcblk0p2 after booting the Linux from flash. Enjoy! Greetings from switzerland, Marian [1] http://wiki.debian.org/DebianOnFreeRunner [2] http://downloads.openmoko.org/daily/gta02v5_and_up-u-boot.bin [3] http://pkg-fso.alioth.debian.org/freerunner/configure-uboot.sh [4] http://moko.mwester.net/dl.html#kernels [5] https://docs.openmoko.org/trac/ticket/1815 [6] http://wiki.openmoko.org/wiki/Booting_from_SD#Booting_from_SDHC_.2F_suspend_problems ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community