Re: [Debian] installed on uSD ext3 using uboot
[SOLVED] reading the SHR manual I noticed that: Loading the Kernel A pair of u-boot commands must be used to load the kernel from SD. First is mmcinit, which will cause u-boot to detect the card. Next is a command to load a file into memory - either fatload or ext2load depending on whether the kernel is on a FAT filesytem or an ext2/ext3 filesystem. The command syntax is: fatload mmc 1:p 0x3200 filepath ext2load mmc 1:p 0x3200 filepath where p is the partition number, and filepath is the path to the file that is to be loaded. but I passed the ext2load parameter to uboot without filepath. Uboot was not able to load uImage.bin because it was in /boot directory, a symlink of uboot.bin did the trick :) -- View this message in context: http://n2.nabble.com/Debian-installed-on-uSD-ext3-using-uboot-tp4428642p4441374.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: [Debian] installed on uSD ext3 using uboot
Alishams Hassam-2 wrote: On Wed, 2010-01-20 at 15:31 -0800, Joif wrote: I'm no more sure that there is a problem with QtMoko and the uSD, maybe the problem is only the SD. Now I'm unable to boot debian from SD receiving the error posted in the previus post and I don't know why. :( If there is no specific reason to use u-boot, give QI a shot and see what happens. I remember having odd errors like this with older versions of u-boot, are you booting from the one in NOR? Also what kernel are you using? Debian booted 2 times then... no more. As you told me I tried Qi but also Qi refuses to boot Debian from the uSD. I also tried to update uBoot but nothing changed (it is normal that updating uboot the environment settings of uboot remain unaltered?), ah and I'm booting from NAND (modifying the NOR requires the use of the dboard). I tried the latest kernels from debian and FSO. -- View this message in context: http://n2.nabble.com/Debian-installed-on-uSD-ext3-using-uboot-tp4428642p4433753.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: [Debian] installed on uSD ext3 using uboot
did you check the partition table of the sd card with (c)fdisk either after booting from flash or in another computer? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian] installed on uSD ext3 using uboot
arne anka wrote: did you check the partition table of the sd card with (c)fdisk either after booting from flash or in another computer? yes I did, many times... it seems ok... I try to reinstall Debian on the SD, but no matter if the partition is ext3 or ext2? -- View this message in context: http://n2.nabble.com/Debian-installed-on-uSD-ext3-using-uboot-tp4428642p4434469.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: [Debian] installed on uSD ext3 using uboot
reinstalled with the script: TASKS=ALL SINGLE_PART=true SD_PART1_FS=ext3 ./install.sh --no-partitioning all I also devirginated uboot and updated it. For booting Debian I use the following parameters with uboot: GTA02v6 # setenv bootargs ${bootargs_base} rootfstype=ext3 root=/dev/mmcblk0p1 rootdelay=5 ${mtdparts}; mmcinit; sleep 1; ext2load mmc 1:1 0x3200 ${sd_image_name}; bootm 0x3200 and I receive: Card Type: SD 2.0 SDHC Manufacturer: 0x02, OEM TM Product name: SD08G, revision 3.8 Serial number: 3421148823 Manufacturing date: 8/2009 MMC/SD size:3MiB ** Unable to read uImage.bin from mmc 1:1 ** Wrong Image Format for bootm command ERROR: can't get kernel image! fdisk does not report errors for the uSD. The debian install script installed the kernel: linux-image-2.6.28-openmoko-gta02 20090105.git69b2aa26-3. At the end of the installation process I received this note: The directory '/mnt/debian' to which Debian was installed is not available any longer. You may want to consider to recreate the directory '/mnt/debian' with mkdir /mnt/debian and add the line /dev/mmcblk0p2 /mnt/debian auto defaults,async 0 0 to the file /etc/fstab, so it will be mounted with subsequent boots into the current system. Do I have to do what this note says? (attention: the correct partition is mmcblk0p1 not mmcblk0p2 for me) -- View this message in context: http://n2.nabble.com/Debian-installed-on-uSD-ext3-using-uboot-tp4428642p4435854.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
[Debian] installed on uSD ext3 using uboot
I used the search function but I didn't find any topic about this situation. Because the wikis in certain points are not clear, I write the following hoping it could help a neo freerunner newbie (not a linux newbie! :P) like me. The target is to have Debian installed on an ext3 partition on the uSD and booting with uBoot. I'm using a brandnew neofreerunner a7 with QtMoko v16b on NAND. What I did first: partitioning the uSD with fdisk (from QtMoko). I have a 8GB kingstone uSD and I tried this configuration: mmcblk0p1 ext3 Debian mmcblk0p2 ext3 other distro mmcblk0p3 ext3 data mmcblk0p4 swap To install Debian in the first ext3 partition (without other partitioning operations) I used the install script mentioned in the debian wiki in this way: $ TASKS=ALL SINGLE_PART=true SD_PART1_FS=ext3 ./install.sh --no-partitioning all Then I made a menu voice in uBoot with this parameters: setenv menu_9 Debian: setenv bootargs \${bootargs_base} rootfstype=ext3 root=/dev/mmcblk0p1 rootdelay=5 \${mtdparts}\; mmcinit\; sleep 1\; ext2load mmc 1:1 0x3200 \${sd_image_name}\; bootm 0x3200 And that's all :) found issues: 1) if QtMoko goes in suspension something happens at the uSD and at the next boot of debian I receive the error : unable to read uimage.bin from mmc 1:1 wrong image format for boot command error: can't get kernel image Strange method but I solve this issue running again qtmoko (maybe a control with fdisk of the uSD) and shutting down it. 2) at the first boot of the current version of debian, the touch screen doesn't work properly. it has to be calibrated first but I don't know how to do it in this moment :) -- View this message in context: http://n2.nabble.com/Debian-installed-on-uSD-ext3-using-uboot-tp4428642p4428642.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: [Debian] installed on uSD ext3 using uboot
Joif wrote: 1) if QtMoko goes in suspension something happens at the uSD and at the next boot of debian I receive the error : unable to read uimage.bin from mmc 1:1 wrong image format for boot command error: can't get kernel image Strange method but I solve this issue running again qtmoko (maybe a control with fdisk of the uSD) and shutting down it. I am not sure here, but maybe the bootloader needs SD card to be properly unmounted. I couldnt boot several times and IIRC after fsck i could boot again. But i am not sure here. Btw running system from SD card never worked reliably for me. Sooner or later i ended up with somehow corrupted filesystem. I think that good option could be base system on readonly filesystem + union with RW system. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian] installed on uSD ext3 using uboot
I'm no more sure that there is a problem with QtMoko and the uSD, maybe the problem is only the SD. Now I'm unable to boot debian from SD receiving the error posted in the previus post and I don't know why. :( -- View this message in context: http://n2.nabble.com/Debian-installed-on-uSD-ext3-using-uboot-tp4428642p4430375.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: [Debian] installed on uSD ext3 using uboot
On Wed, 2010-01-20 at 15:31 -0800, Joif wrote: I'm no more sure that there is a problem with QtMoko and the uSD, maybe the problem is only the SD. Now I'm unable to boot debian from SD receiving the error posted in the previus post and I don't know why. :( If there is no specific reason to use u-boot, give QI a shot and see what happens. I remember having odd errors like this with older versions of u-boot, are you booting from the one in NOR? Also what kernel are you using? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community