On 9/24/06, if <[EMAIL PROTECTED]> wrote:
What i want:
Something fully loaded with fsck and friends, that can be dd'ed to
card, inserted into ipaq and booted from.

Questions:
1. Boot parameters on 4700 are in bootldr.rom. To add logging to
console (as on big boxes), i had to hexedit bootldr.rom, change
linuxargs there (to see them -- strings bootldr.file | grep
"console="), preserving length, and reflash bootloader, because this
parameters are hardcoded there (console=/dev/ttyS0, in my case). Is
there any way to get this out to some file like /boot/params? I
deleted bootparams file on 4700 (pkg name gpe-boot iirc), it's really
useless. How to make it useful? To experiment with custom kernels, for
instance, without reflashing the whole thing..

It is possible to recompile bootldr with a patch that makes it try to
boot from CF first, and if this fails, to boot from flash instead.

--- bootldr/bootldr.c.orig      2006-04-03 19:11:10.000000000 +0200
+++ bootldr/bootldr.c   2006-04-03 19:11:38.000000000 +0200
@@ -848,6 +848,7 @@
default_boot()
{
  while (1) {
+     exec_string("boot vfat");
     exec_string("boot");
     putstr("boot command failed, entering monitor\n\r");

With "boot vfat", you can supply the boot/params file on a fat16
partition 1 on cf.

4. Most general question: If there is _no_ way now to boot 4700 from
card to rescue a corrupt system, is there any ways to recover? (in
home environment, of cource ;)

If you have a serial cable, you can always enter the bootldr command line
and boot from CF via "boot vfat" or "boot ide" manually.

6. I also have famous "download failed, reflash failed" messages when
try to update bootloader, but bootloader flashes nevertheless ;)
Though i havent changed more, than string values for linuxargs, it
works.

That's because, as far as I know, nobody ever took the time to figure
out the checksum algorithm of the HTC bootloader.

cheers
Philipp
_______________________________________________
Hx4700-port mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/hx4700-port

Reply via email to