Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Palm Pre that runs a version of Linux 2.6. This phone boots it's self up with bootie and something similar to iphone's iBoot. This phone when connected to a computer can act like a fat32 usb drive. To explain further, the device boots off its own memory 8GB in total, it reserves all the behind the scenes stuff (linux) about 700 - 1000MB. And through linux allows a PC to (mount?) access a folder or partition as a fat32 fs. So if this is possible I'm asking if linux can mount that partition or folder as a bootable fat32 fs, where the receiving computer's bios can recognize and jump to a "virtual" boot sector?
I'm not just asking from a cell phone point of view but also a computer to computer boot. If anyone has even played with this idea please share.
I think your idea is theoretically possible but practically the Palm and PC each have its own different CPU, therefore different instruction sets, and so the boot code that work on the Palm will not run on PC. You can boot up a PC based boot loader like Grub or syslinux but I don't think you will get anything useful out by loading the Palm's boot loader into the PC.
I hope I can mount a folder/partition on the cell phone as a bootable fat32 that I can put a virtual MBR in the first sector that tells all connecting devices to jump to a PC friendly boot loader. I think this will work but I don't know how to do it and I don't exactly know what the PC does to the cell phone during boot up.
OR
The PC actually looks for the raw first bytes and finds the real boot sector, this phone runs Linux so the PC should be able to read and understand the language UNTIL it gets to the part that starts talking cell hardware ( the jump to a file?). How can I modify the current boot code to make a conditional jump to a different boot file (in fat32 partition) if the reader is NOT a Palm Pre?
I know the boot sector has to be 512kb and end a certain way, when it comes to jumping to byte 0xblahblah precede the code with "read machine ID and if not PALM change jump to 0xthatotherone"?
Sounds like you are talking about a net boot. Which is certainly possible, but keep in mind that your PC (hopefully) has a different processor than the palm, so you will need a different kernel and a different system.
Research net-booting if you are really interested.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.