LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This 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


Reply
  Search this Thread
Old 09-12-2009, 10:26 AM   #1
sparkkticus
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Question Can I boot a computer via usb from a cellphone


Hi Guys,

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.

Thanx
 
Old 09-12-2009, 10:42 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
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.

However I would be pleased to be proved wrong.

Last edited by saikee; 09-12-2009 at 10:44 AM.
 
Old 09-13-2009, 12:00 PM   #3
sparkkticus
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I figure there's 2 ways this will work:

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"?

Thanx for taking the time to look @ this!!
 
Old 09-15-2009, 01:12 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
are you asking if you can boot a usb attached pc to web-os ? probably not.

but as long as the phone looks like an external harddrive (or thumb drive ...) it should boot whatever distro you put on the blank space.

fedora has a wonderful live-usb thumb drive installer.

for example i used my creative zen vision:w to boot up knoppix-live-usb.

Last edited by schneidz; 09-15-2009 at 01:14 PM.
 
Old 09-15-2009, 08:46 PM   #5
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: gentoo
Posts: 372

Rep: Reputation: 29
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot floppy that tells computer to boot USB drive? General Debian 23 02-19-2014 09:55 PM
Cannot connect usb cellphone modem to internet Rodemire Linux - Networking 4 02-15-2009 04:59 PM
Connecting a cellphone (Samsung Z230) by USB to transfer images and data OR13 Linux - Hardware 1 10-21-2008 06:03 AM
cellphone connected to my computer Israfel2000 General 3 08-29-2006 04:23 PM
Connecting a T68 cellphone to RH9 via USB ericcarlson Linux - Hardware 0 03-09-2004 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration