Oh, no, not dwelch again!
Yep! Apparently it is bad form to continue old threads but instead splinter off new ones to continue the discussion...
U-boot. What is the status of u-boot? You probably only have to read a few post to see that I am mostly interested in HH. I found open2x and more info on a modified u-boot today and have some questions. Can we use u-boot with GPH's 2.x linux? Is the install still the same? where are the latest-greatest files? I think one of the art links is gone/broken.
Okay I started by asking what the format of the .img file is, but just found something on it, so, say for example I wanted u-boot to boot an img off of the sd instead of nand. And I basically wanted a wee little program that shoved a few bytes into the uart (which is clearly already setup), perhaps "Hello World" for example. Can anyone give me some advice on how to do that or a simple example (something simpler than the entire linux kernel source, which I already have). I am assuming the binary associated with this (is it elf or just bytes?) is setup to be branched into at address 0x8000 and does not have a vector table, just an entry point?
How much memory is u-boot using (so I can stay out of its way)? < 0x8000 I assume
About building gcc. I think I saw open2x related pages saying it could build gcc with cygwin. but then another comment that it so far doesnt work on windows. I have been building gcc since 2.95.3, but somewhere in the 3.x days it stopped working for me and I just went with linux (where it still works for me). I greatly prefer mingw, but even a cygwin build of gcc 4.x would be nice. Anyone know the tricks? binutils I have building no problem, but not gcc, nor newlib (I prefer newlib to glibc).
And I am going back to the data/sales/marketing sheet...again... (mesdigital MMSP2 data sheet) "It also supports a H/W Bootdown function that allows a PC to update the system program memory contents directly via the UART I/F port." Anyone know anything about that? Is that possible with this unit (vs using jtag), or is it one of those you have to short pin 27 before reset kind of things (where we dont have access to pin 27 without cracking the case)? Just curious, if I brick this thing would like to use this feature over buying/building a jtag programmer. (In theory if I get the u-boot with selectable boot options on, then I can boot from the sd for testing/fun and leave the nand for the GPH linux and filesystem and wont have to deal with it again).
I noticed when booting it says:
### main_loop: bootcmd="bootm"
Hit any key to stop autoboot: 0
## Booting image at 01000000 ...
How do you do that? I held buttons down on the gp2x and held a key down on the pc in hyperterm, kept booting...Oh, I guess I see that one, bootdelay is zero and they didnt build with CONFIG_ZERO_BOOTDELAY_CHECK, or I couldnt get a "key press" in there in time.
#else
printf("Hit any key to stop autoboot: %2d ", bootdelay);
#endif
#if defined CONFIG_ZERO_BOOTDELAY_CHECK
/*
* Check if key already pressed
* Don't check if bootdelay < 0
*/
if (bootdelay >= 0) {
if (tstc()) { /* we got a key press */
(void) getc(); /* consume input */
printf ("\b\b\b 0");
abort = 1; /* don't auto boot */
}
}
#endif
while ((bootdelay > 0) && (!abort)) {
int i;
--bootdelay;
/* delay 100 * 10ms */
for (i=0; !abort && i<100; ++i) {
if (tstc()) { /* we got a key press */
abort = 1; /* don't auto boot */
bootdelay = 0; /* no more delay */
# ifdef CONFIG_MENUKEY
menukey = getc();
# else
(void) getc(); /* consume input */
# endif
break;
}
udelay (10000);
}
printf ("\b\b\b%2d ", bootdelay);
}
Yep! Apparently it is bad form to continue old threads but instead splinter off new ones to continue the discussion...
U-boot. What is the status of u-boot? You probably only have to read a few post to see that I am mostly interested in HH. I found open2x and more info on a modified u-boot today and have some questions. Can we use u-boot with GPH's 2.x linux? Is the install still the same? where are the latest-greatest files? I think one of the art links is gone/broken.
Okay I started by asking what the format of the .img file is, but just found something on it, so, say for example I wanted u-boot to boot an img off of the sd instead of nand. And I basically wanted a wee little program that shoved a few bytes into the uart (which is clearly already setup), perhaps "Hello World" for example. Can anyone give me some advice on how to do that or a simple example (something simpler than the entire linux kernel source, which I already have). I am assuming the binary associated with this (is it elf or just bytes?) is setup to be branched into at address 0x8000 and does not have a vector table, just an entry point?
How much memory is u-boot using (so I can stay out of its way)? < 0x8000 I assume
About building gcc. I think I saw open2x related pages saying it could build gcc with cygwin. but then another comment that it so far doesnt work on windows. I have been building gcc since 2.95.3, but somewhere in the 3.x days it stopped working for me and I just went with linux (where it still works for me). I greatly prefer mingw, but even a cygwin build of gcc 4.x would be nice. Anyone know the tricks? binutils I have building no problem, but not gcc, nor newlib (I prefer newlib to glibc).
And I am going back to the data/sales/marketing sheet...again... (mesdigital MMSP2 data sheet) "It also supports a H/W Bootdown function that allows a PC to update the system program memory contents directly via the UART I/F port." Anyone know anything about that? Is that possible with this unit (vs using jtag), or is it one of those you have to short pin 27 before reset kind of things (where we dont have access to pin 27 without cracking the case)? Just curious, if I brick this thing would like to use this feature over buying/building a jtag programmer. (In theory if I get the u-boot with selectable boot options on, then I can boot from the sd for testing/fun and leave the nand for the GPH linux and filesystem and wont have to deal with it again).
I noticed when booting it says:
### main_loop: bootcmd="bootm"
Hit any key to stop autoboot: 0
## Booting image at 01000000 ...
How do you do that? I held buttons down on the gp2x and held a key down on the pc in hyperterm, kept booting...Oh, I guess I see that one, bootdelay is zero and they didnt build with CONFIG_ZERO_BOOTDELAY_CHECK, or I couldnt get a "key press" in there in time.
#else
printf("Hit any key to stop autoboot: %2d ", bootdelay);
#endif
#if defined CONFIG_ZERO_BOOTDELAY_CHECK
/*
* Check if key already pressed
* Don't check if bootdelay < 0
*/
if (bootdelay >= 0) {
if (tstc()) { /* we got a key press */
(void) getc(); /* consume input */
printf ("\b\b\b 0");
abort = 1; /* don't auto boot */
}
}
#endif
while ((bootdelay > 0) && (!abort)) {
int i;
--bootdelay;
/* delay 100 * 10ms */
for (i=0; !abort && i<100; ++i) {
if (tstc()) { /* we got a key press */
abort = 1; /* don't auto boot */
bootdelay = 0; /* no more delay */
# ifdef CONFIG_MENUKEY
menukey = getc();
# else
(void) getc(); /* consume input */
# endif
break;
}
udelay (10000);
}
printf ("\b\b\b%2d ", bootdelay);
}