Menu

#4 USB Flash Drive Support

open
nobody
Kernel (4)
5
2010-02-05
2010-02-05
No

The operating system is unable to boot from a USB flash disk, and I think it's because of the way that LBA works on them. It load up the boot sector fine and then reads in the correct number of sectors from the disk, but crashes when it tries to jump to the main command processing loop ("main:"). This is likely because main is on sector 1, and it load the wrong sector in its place and the system hangs after setting the instruction pointer to where main is supposed to be. Both my laptop and VirtualBox hang at the same point right after loading the system, which makes me think it is a dealio with flash drives.

Right now, LameOs is engineered towards floppy disks, but a preprocessor conditional that tells iosector how to handle LBA's for USB drives would be helpful, especially since I don't own any computers that have floppy disk drives and thus can't test it on a physical machine.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB