From: Marcus T. S. B. <mar...@bi...> - 2006-08-17 22:02:52
|
Hi, I've managed to set my autoboot delay to 0, and therefor unable to change u-boot settings. In my attempt to fix this via linux, i've rendered linux un-bootable: Starting kernel ... crc error .. System halted Am I stuffed? or is there a way to get into u-boot (with out sending back for a re-flash). Thanks, Marcus |
From: Craig H. <cr...@gu...> - 2006-08-17 23:20:49
|
On Aug 17, 2006, at 3:02 PM, Marcus Timothy Sambrook Birkin wrote: > Hi, > > I've managed to set my autoboot delay to 0, and therefor unable to > change u-boot settings. > In my attempt to fix this via linux, i've rendered linux un-bootable: > > Starting kernel ... > > crc error > > .. System halted > > Am I stuffed? or is there a way to get into u-boot (with out sending > back for a re-flash). If you have a basix or (connex with netMMC), and you left the default bootcmd in u-boot, then you can recover by using the gumstix- factory.script trick on an MMC card. The default bootcmd is: "icache on;setenv stderr nulldev; setenv stdout nulldev; if mmcinit && fatload mmc 0 a2000000 gumstix-factory.script; then setenv stdout serial; setenv stderr serial; echo Found gumstix-factory script...; autoscr; else setenv stdout serial;setenv stderr serial;fsload && bootm; fi" Which means that if you have an MMC card present during boot, and that MMC card has a file on it called "gumstix-factory.script", then u-boot will load that file and try and execute it in the u-boot's shell as a shell script. The file is supposed to have a uImage containing a u-boot shell script, but if you just make it an empty file, then when u-boot tries to "autoscr" it, it'll fail and dump you to a u-boot prompt. If you have a connex but no netMMC card, or if you modified the default bootcmd, then you're probably hosed and need JTAG to reflash to u-boot. C |
From: Nick E. <nic...@gm...> - 2006-08-18 01:10:25
|
On 8/18/06, Craig Hughes <cr...@gu...> wrote: > > If you have a basix or (connex with netMMC), and you left the default > bootcmd in u-boot, then you can recover by using the gumstix- > factory.script trick on an MMC card. The default bootcmd is: > > "icache on;setenv stderr nulldev; setenv stdout nulldev; if mmcinit > && fatload mmc 0 a2000000 gumstix-factory.script; then setenv stdout > serial; setenv stderr serial; echo Found gumstix-factory script...; > autoscr; else setenv stdout serial;setenv stderr serial;fsload && > bootm; fi" > > Which means that if you have an MMC card present during boot, and > that MMC card has a file on it called "gumstix-factory.script", then > u-boot will load that file and try and execute it in the u-boot's > shell as a shell script. The file is supposed to have a uImage > containing a u-boot shell script, but if you just make it an empty > file, then when u-boot tries to "autoscr" it, it'll fail and dump you > to a u-boot prompt. Thanks Craig. That is really useful info, I'm was looking for a way to flash a number of Gumstix's easily. So just to summarise that info (please let me know if I'm wrong on anything), on the MMC card I'd need 2 files: root_fs_arm - the root fs image gumstix-factory.script - the loading script I googled for your script Craig and found one. I've added a bootargs command so that uboot finds the 2.6.17 kernel. (As it appears that the Gumstix still ship with the 2.6.11 based images) The gumstix-factory.script script looks like: ---- echo "Running script..." set workedok Failed if mmcinit; then if fatload mmc 0 a2000000 root_fs_arm; then set rootfssize $filesize if protect off all; then if protect on 1:0-1; then if erase all; then if cp.b a2000000 40000 $rootfssize; then set workedok Success fi fi fi fi fi fi set bootargs console=ttyS0,115200n8 root=1f01 rootfstype=jffs2 reboot=cold,hard saveenv fsload boot/uImage&&bootm ---- Does all that sound OK? Thanks, Nick |
From: Craig H. <cr...@gu...> - 2006-08-18 15:33:41
|
On Aug 17, 2006, at 6:10 PM, Nick Engel wrote: > set bootargs console=ttyS0,115200n8 root=1f01 rootfstype=jffs2 > reboot=cold,hard > saveenv This is fine if you're flashing only the rootfs, which in this case it looks like you are. If you ever flash a new u-boot, then you'll have to reboot before doing a saveenv -- otherwise the old u-boot will save the environment to the location if uses, which is likely to be different than the location that the new u-boot expects, which will overwrite some random chunk of the new u-boot's code, which is not a good idea if you like your gumstix bootable. Apart from that warning though, looks good. C |
From: Al <a....@gm...> - 2006-08-21 19:10:52
|
I remember reading about the possible addition of a GSM board for Gumstix on the mailing list. As I remember it it was to use a Siemens MC75 module. Since I have a similar need, I'm curious about any design details so as not to re-invent the wheel. For example, what type of port (serial, I2C, SPI) will this device be connected too and which specific port. Why was theSiemens module chosen? I have been working with a Telit GM862-Quad-PY, but have not yet interfaced it to the Gumstix.. Any other information such as software drivers would be appreciated. Thanks in advance. Al Langer This message was sent using www.to25.com. |
From: Nick E. <nic...@gm...> - 2006-08-18 01:18:14
|
On 8/18/06, Nick Engel <nic...@gm...> wrote: > > Thanks Craig. That is really useful info, I'm was looking for a way to > flash a number of Gumstix's easily. > > So just to summarise that info (please let me know if I'm wrong on > anything), on the MMC card I'd need 2 files: > root_fs_arm - the root fs image > gumstix-factory.script - the loading script > > I googled for your script Craig and found one. I've added a bootargs > command so that uboot finds the 2.6.17 kernel. (As it appears that the > Gumstix still ship with the 2.6.11 based images) > > The gumstix-factory.script script looks like: > ---- > echo "Running script..." > set workedok Failed > if mmcinit; then > if fatload mmc 0 a2000000 root_fs_arm; then > set rootfssize $filesize > if protect off all; then > if protect on 1:0-1; then > if erase all; then > if cp.b a2000000 40000 $rootfssize; then > set workedok Success > fi > fi > fi > fi > fi > fi > set bootargs console=ttyS0,115200n8 root=1f01 rootfstype=jffs2 > reboot=cold,hard > saveenv > fsload boot/uImage&&bootm > ---- > > Does all that sound OK? > Sorry I've realised I've gone off topic here from the original post. One thing I've missed is that gumstix-factory.script is an uImage and needs to be built with mkimage. Does any know the mkimage cmd I need to create this. I've seen examples but I'm not sure of the memory location. Thanks, Nick |
From: Nick E. <nic...@gm...> - 2006-08-18 01:26:41
|
On 8/18/06, Nick Engel <nic...@gm...> wrote:On 8/18/06, Nick Engel < nic...@gm...> wrote: > Thanks Craig. That is really useful info, I'm was looking for a way to > flash a number of Gumstix's easily. > > So just to summarise that info (please let me know if I'm wrong on > anything), on the MMC card I'd need 2 files: > root_fs_arm - the root fs image > gumstix-factory.script - the loading script > > I googled for your script Craig and found one. I've added a bootargs > command so that uboot finds the 2.6.17 kernel. (As it appears that the > Gumstix still ship with the 2.6.11 based images) > > The gumstix-factory.script script looks like: > ---- > echo "Running script..." > set workedok Failed > if mmcinit; then > if fatload mmc 0 a2000000 root_fs_arm; then > set rootfssize $filesize > if protect off all; then > if protect on 1:0-1; then > if erase all; then > if cp.b a2000000 40000 $rootfssize; then > set workedok Success > fi > fi > fi > fi > fi > fi > set bootargs console=ttyS0,115200n8 root=1f01 rootfstype=jffs2 > reboot=cold,hard > saveenv > fsload boot/uImage&&bootm > ---- > > Does all that sound OK? > Sorry I've realised I've gone off topic here from the original post. One thing I've missed is that gumstix-factory.script is an uImage and needs to be built with mkimage. Does any know the mkimage cmd I need to create this. I've seen examples but I'm not sure of the memory location. I'm answering my own questions today! Its all in SVN. mkimage -A arm -O u-boot -T script -C none -n 'Gumstix Factory Script' -d gumstix-factory.txt gumstix-factory.script |