Re: Bad Magic Number while booting from SD card with new uImage!
On Sat, Sep 20, 2008 at 9:05 PM, Alex Oberhauser [EMAIL PROTECTED] wrote: No some larger cards break us right now, can you let me know your exact card type and I will do a little shopping spree today to reproduce this. ~ I think someone else mentioned Sandisk 8GB is going to make the same trouble. My Sandisk 8GB breaks also. Some times the partiton and format works and sometimes the card would not be recognized. Always after reboot the whole partion table is away. Please tell me if you need more information to make it easier to debug. It'll be nice to be able to debug it because in our city we have only similar cards and otherwise we have to import specially from other places. So where do we start? Tomorrow, I will repartition my SD card to check once more if it works and in the meanwhile wait for your instructions. Alex ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- Shaz ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
It'll be nice to be able to debug it because in our city we have only similar cards and otherwise we have to import specially from other places. So where do we start? Tomorrow, I will repartition my SD card to check once more if it works and in the meanwhile wait for your instructions. I have repartition the card more than once and always the same problem. At the moment I try the debug board to become more information about the kernel panic at the beginning of the boot sequence. Maybe then I have more a clue where to look. I will report if I have more informations. Happy bug finding and fixing. Alex ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
My Sandisk 8GB breaks also. Some times the partiton and format works and sometimes the card would not be recognized. Always after reboot the whole partion table is away. I also have an 8GByte Sandisk SDHC card and was having exactly the same problems until turning the SD clock on when the Freerunner is suspended. This has been incorporated in the kernels newer than the 4th of September. Since using kernels newer than this i have not had any problems with data corruption on my SD card. Simon ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
No some larger cards break us right now, can you let me know your exact card type and I will do a little shopping spree today to reproduce this. ~ I think someone else mentioned Sandisk 8GB is going to make the same trouble. My Sandisk 8GB breaks also. Some times the partiton and format works and sometimes the card would not be recognized. Always after reboot the whole partion table is away. Please tell me if you need more information to make it easier to debug. Alex ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | Hi, | | I am getting bad magic number when I try to boot from micro SD with my ... | sudo make CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- You don't need to do this as root. ... | Image Type: ARM Linux Kernel Image (uncompressed) uncompressed is good anyway | Data Size:1769300 Bytes = 1727.83 kB = 1.69 MB | Load Address: 0x30008000 | Entry Point: 0x30008000 | Image arch/arm/boot/uImage is ready We call it uImage.bin, that is what the canned U-Boot menu scripts expect. Can you show the text around this bad magic number report? A few different things have magic numbers. You are not using the shipped 512MB SD Card. Do things work better if you do? - -Andy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkjTWh4ACgkQOjLpvpq7dMoFDwCfZ+rvYjdSw1E3td00BietD85J cGoAn2i0qg8uqU8QYq734qBrjMwc43TZ =NZb5 -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
On 9/19/08, Andy Green [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | Hi, | | I am getting bad magic number when I try to boot from micro SD with my ... | sudo make CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- You don't need to do this as root. I get permission denied on root owned directory linux-2.6.24 :) ... | Image Type: ARM Linux Kernel Image (uncompressed) uncompressed is good anyway | Data Size:1769300 Bytes = 1727.83 kB = 1.69 MB | Load Address: 0x30008000 | Entry Point: 0x30008000 | Image arch/arm/boot/uImage is ready We call it uImage.bin, that is what the canned U-Boot menu scripts expect. yes. This was the problematic part :) By default it expects uImage.bin. Can you show the text around this bad magic number report? A few different things have magic numbers. You are not using the shipped 512MB SD Card. Do things work better if you do? My Rootfs had problems due to this new SD card. The kernel was giving panics due to some VFS driver issue but when I used the old SD card it started to work. Is there a problem of quality of SD cards that I bought? We are making images on various SD cards as incremental experiments so need to have more than one card. I'll check it somehow. - -Andy Thanks alot Andy. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkjTWh4ACgkQOjLpvpq7dMoFDwCfZ+rvYjdSw1E3td00BietD85J cGoAn2i0qg8uqU8QYq734qBrjMwc43TZ =NZb5 -END PGP SIGNATURE- -- Shaz ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | You don't need to do this as root. | I get permission denied on root owned directory linux-2.6.24 :) Well, you are better to chown it to your user than run as root... once you start running stuff and creating files as root it kind of leaks out everywhere until you have to do everything as root. | We call it uImage.bin, that is what the canned U-Boot menu scripts expect. | yes. This was the problematic part :) By default it expects uImage.bin. Great. | My Rootfs had problems due to this new SD card. The kernel was giving | panics due to some VFS driver issue but when I used the old SD card it | started to work. Is there a problem of quality of SD cards that I | bought? We are making images on various SD cards as incremental | experiments so need to have more than one card. I'll check it somehow. No some larger cards break us right now, can you let me know your exact card type and I will do a little shopping spree today to reproduce this. ~ I think someone else mentioned Sandisk 8GB is going to make the same trouble. - -Andy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkjTdAoACgkQOjLpvpq7dMp+OACeIqu5CFz2fXSFiUHsZIvA65LJ 7I4AnRxkA83cgPjiZb+gaHjXNFGD8KZK =my4r -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
On 9/19/08, Andy Green [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | You don't need to do this as root. | I get permission denied on root owned directory linux-2.6.24 :) Well, you are better to chown it to your user than run as root... once you start running stuff and creating files as root it kind of leaks out everywhere until you have to do everything as root. I guess you are right. It can even crash the toolchain and libs. I had a bad experiance with a uclibc toolchain once. | We call it uImage.bin, that is what the canned U-Boot menu scripts expect. | yes. This was the problematic part :) By default it expects uImage.bin. Great. | My Rootfs had problems due to this new SD card. The kernel was giving | panics due to some VFS driver issue but when I used the old SD card it | started to work. Is there a problem of quality of SD cards that I | bought? We are making images on various SD cards as incremental | experiments so need to have more than one card. I'll check it somehow. No some larger cards break us right now, can you let me know your exact card type and I will do a little shopping spree today to reproduce this. ~ I think someone else mentioned Sandisk 8GB is going to make the same trouble. Its named Amco. A 1GB card. So should we stick to 512MB? We can live with that too :) - -Andy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkjTdAoACgkQOjLpvpq7dMp+OACeIqu5CFz2fXSFiUHsZIvA65LJ 7I4AnRxkA83cgPjiZb+gaHjXNFGD8KZK =my4r -END PGP SIGNATURE- -- Shaz ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | No some larger cards break us right now, can you let me know your exact | card type and I will do a little shopping spree today to reproduce this. | ~ I think someone else mentioned Sandisk 8GB is going to make the same | trouble. | Its named Amco. A 1GB card. So should we stick to 512MB? We can live | with that too :) Somehow it's the larger cards seem to have the trouble, something to do with being slower to wake up and give first bulk transfer than we can currently handle, if you stick to the Sandisk 512MB right now it doesn't seem to show this behaviour. I doubt I find this Amco thing here in UK so I will just buy a few 8MB ones. - -Andy -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkjTd78ACgkQOjLpvpq7dMq7bACeP3tq5ozV/j/gar7jSGZAHt7k 898An1v9slcltTw2a2KcD84wIq/Et/m1 =jXlN -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
On 9/19/08, michael [EMAIL PROTECTED] wrote: Hi, Andy Green wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Somebody in the thread at some point said: | No some larger cards break us right now, can you let me know your exact | card type and I will do a little shopping spree today to reproduce this. | ~ I think someone else mentioned Sandisk 8GB is going to make the same | trouble. | Its named Amco. A 1GB card. So should we stick to 512MB? We can live | with that too :) Somehow it's the larger cards seem to have the trouble, something to do with being slower to wake up and give first bulk transfer than we can currently handle, if you stick to the Sandisk 512MB right now it doesn't seem to show this behaviour. I doubt I find this Amco thing here in UK so I will just buy a few 8MB ones. Just to know, how the SD is formatted? It is a vfat and u-boot use fatload? I am using vfat for uImage and ext3 for rootfs. Currently, rootfs cant be loaded because kernel panics on vfs drivers (or something) but the kernel has started to boot when I renamed it to uImage.bin ;-) I am going to repartition it to see if it will work. Should I go for a smaller rootfs patition instead of 982MB? Maybe 500 or 512MB. Regards Michael -- Shaz ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Bad Magic Number while booting from SD card with new uImage!
On Fri, Sep 19, 2008 at 9:45 AM, Sean McNeil [EMAIL PROTECTED] wrote: How are you copying the uImage to the sdcard? Is it possible you have CR/LF translation on? Have no clear idea what CR/LF translation is but I just did sudo cp uImage /media/disk/. Usually we either do cp in a similar way or copy - paste in GUI. We use Ubuntu Linux. Shaz wrote: Hi, I am getting bad magic number when I try to boot from micro SD with my new uImage. I had a clean and successful make and make uImage. I have an first partition on SD card of 100MB (vfat) and 899MB (ext3). I am using the moko toolchain as the later commands show. And got the sources from: git clone git://git.openmoko.org/git/kernel.git linux-2.6 cd linux-2.6 git checkout origin/stable After executing the following command: -- sudo make CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi- ARCH=arm uImage -- I got the following output: -- . . . Image Name: Linux-2.6.24 Created: Fri Sep 19 06:58:28 2008 Image Type: ARM Linux Kernel Image (uncompressed) Data Size:1769300 Bytes = 1727.83 kB = 1.69 MB Load Address: 0x30008000 Entry Point: 0x30008000 Image arch/arm/boot/uImage is ready --- What are the possible reasons for bad magic number and what is the solution? -- Shaz ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community