Author Topic: Quest for a Better Boot-Loader  (Read 2704 times)

torpor

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Quest for a Better Boot-Loader
« on: July 06, 2004, 05:15:28 pm »
Its gotta be possible to build a better loadin that'll let me choose a zImage from CF, no?  

Anyone know whats out there that we might use to solve this horrid image-update scene on the sl5500 front?

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Quest for a Better Boot-Loader
« Reply #1 on: July 06, 2004, 05:35:42 pm »
Your best bet would be using LAB (Linux as Bootloader), which is the next generation boot loader by the handhelds.org crew. Equipped with a JTAG it shouldn't take much to port it... except time and motivation, of course.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

torpor

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Quest for a Better Boot-Loader
« Reply #2 on: July 06, 2004, 05:41:40 pm »
why is JTAG required?

don't we just need a FLASH programmer (app) and a zImage/initrd '/boot_dir' setup that fires up a script in linux-single mode, does the menu/flash thing, and reboots?  

I mean, can we not administer, completely, the boot and FLASH ram, from a running linux kernel already?  Wouldn't it be lovely if it were just a matter of /dev/nvram support ...

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Quest for a Better Boot-Loader
« Reply #3 on: July 06, 2004, 07:36:56 pm »
Uhm... you realize that a PDA bootloader is different from a PC one, right?

On the PC you have a nice BIOS which is always there for you doing the tough hardware initialization work and then hands control to the bootloader which finds everything in place and just has to do a little bit.

On the PDA the bootloader is what initializes the hardware, sets up memory timings, initializes the display etc. It has to do a lot of work - albeit trivial work. It also resides itself in Flash hence the first time when you flash a new one which doesn't work you have a brick.

Without JTAG I wouldn't even think about hacking bootloaders.
« Last Edit: July 06, 2004, 07:38:31 pm by Mickeyl »
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

torpor

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Quest for a Better Boot-Loader
« Reply #4 on: July 06, 2004, 07:45:49 pm »
yes, i'm familiar with what a bootloader is.  i just don't get why it is a requirement that you have to use the built-in FLASH programmer to flash your own kernel image into the bootable system FLASH RAM from CF?

if it were possible to flash the RAM from a userspace app on a running linux kernel, thus replacing the bootable system image, then we could far better automate the process of replacing linux kernels/initrd images in the base zaurus hardware.

Why does it need a bootloader in the first place, if the flashable RAM is available and can be written to from normal kernel space?  Is there simply no way to flash the RAM from the kernel, i.e. some sorta Sharp'ism on access to onboard Flash RAM?

feel free to indicate which tree i'm not wrongly barking up, I'm new to the zaurus scene ... it just seems to me that with a flash program that can be run in kernel space, we eliminate the need for the C-D trick as the only means of replacing kernel images.  that'd be nice, wouldn't it?

onerats

  • Guest
Quest for a Better Boot-Loader
« Reply #5 on: August 17, 2004, 12:15:16 pm »
I've been interested in getting JTAG access to my 5500 for a while, partly so that I can poke a little at the bootloader.  The closest thing to a pinout that I've been able to find, though, is a newsgroup post where someone speculates that it might be couched in the contacts next to the battery.  Is there any chance that somebody around here knows the actual pinout or who at Sharp I could contact to get it?  Thanks kindly...

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Quest for a Better Boot-Loader
« Reply #6 on: August 17, 2004, 02:25:44 pm »
I doubt Sharp will be helpful. Try asking on #openzaurus on irc.freenode.net or #handhelds.org, where skilled zaurus hackers still appear once in a while...
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.