Re: QI kernel parameters
On Sun, 02 Jan 2011 21:26:08 +0100 Ed Kapitein wrote: > Anyway, i tried it, and i end up with: > neo qi # make > mkdir -p image > ld: cannot open linker script file src/cpu//qi.lds: No such file or > directory Sorry, I didn't (re-)read the instructions in the README file before sending that. make CPU=s3c2442 > Did you manage to get your SD card to work? if so how? I ran a full bad blocks scan of the card on another computer and recreated the filesystem once again. It seems to work OK now though I'm still not sure if I want to put this unit back in the field... I would have done "dd if=/dev/zero of=/dev/thecard" to force reallocation of bad sectors like I would do on a hard drive but I was afraid that would cause every flash block to be read-modify-written multiple times. I wish we could get direct access to the flash on SD cards like we can do with the NOR/NAND flash to bypass the FTL and use a file system designed for flash. -Phil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QI kernel parameters
Hi Phil, Thanks for the tip, it seems like a hassle to recompile qi for setting the glamo clock speed. Anyway, i tried it, and i end up with: neo qi # make mkdir -p image ld: cannot open linker script file src/cpu//qi.lds: No such file or directory make: *** [image/qi--master_c38b062a609f1442.udfu] Error 1 I am building on the FR, so no toolchain there. Did you manage to get your SD card to work? if so how? Also in my case the error follows the SD card, another card (class 6) works just fine, but the new (class 4) is buggy. Kind regards, Ed On 01/02/2011 06:14 PM, Phil Vandry wrote: > On Sun, Jan 02, 2011 at 05:43:36PM +0100, Ed Kapitein wrote: >> I have a hard time with an SD card that will give errors whne running >> fsck, even right after an fresh mke2fs. > I have one of those too :-( The problem follows the μSD card, not > the Freerunner. > >> Any other idea on how to supply kernel parameters while booting from NAND? > I needed to change the kernel command line and I found that it was easy to > do by changing Qi's source code. Qi is very small so it's not daunting to > modify and compiles in to time. All you need is a working toolchain. > > - git clone git://git.openmoko.org/git/qi.git > > - find the function append_device_specific_cmdline_gta02 in > src/cpu/s3c2442/gta02.c > > You can just add something like > > cmdline += strlen(strcpy(cmdline, " youroption=yourvalue")); > > - make > > - Use dfu-util to flash the result onto the Freerunner. > > -Phil > > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QI kernel parameters
Hi, Notice, that if your distro-specific qi already has some kernel params changed in source or have some additional patches, you have to use distro-specific qi source as base. You may attempt to cat /proc/cmdline to check that. Alternatively just use u-boot ;) Gennady В Вск, 02/01/2011 в 12:14 -0500, Phil Vandry пишет: > On Sun, Jan 02, 2011 at 05:43:36PM +0100, Ed Kapitein wrote: > > I have a hard time with an SD card that will give errors whne running > > fsck, even right after an fresh mke2fs. > > I have one of those too :-( The problem follows the μSD card, not > the Freerunner. > > > Any other idea on how to supply kernel parameters while booting from NAND? > > I needed to change the kernel command line and I found that it was easy to > do by changing Qi's source code. Qi is very small so it's not daunting to > modify and compiles in to time. All you need is a working toolchain. > > - git clone git://git.openmoko.org/git/qi.git > > - find the function append_device_specific_cmdline_gta02 in > src/cpu/s3c2442/gta02.c > > You can just add something like > > cmdline += strlen(strcpy(cmdline, " youroption=yourvalue")); > > - make > > - Use dfu-util to flash the result onto the Freerunner. > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: QI kernel parameters
On Sun, Jan 02, 2011 at 05:43:36PM +0100, Ed Kapitein wrote: > I have a hard time with an SD card that will give errors whne running > fsck, even right after an fresh mke2fs. I have one of those too :-( The problem follows the μSD card, not the Freerunner. > Any other idea on how to supply kernel parameters while booting from NAND? I needed to change the kernel command line and I found that it was easy to do by changing Qi's source code. Qi is very small so it's not daunting to modify and compiles in to time. All you need is a working toolchain. - git clone git://git.openmoko.org/git/qi.git - find the function append_device_specific_cmdline_gta02 in src/cpu/s3c2442/gta02.c You can just add something like cmdline += strlen(strcpy(cmdline, " youroption=yourvalue")); - make - Use dfu-util to flash the result onto the Freerunner. -Phil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community