LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 06-18-2005, 01:28 PM   #1
BleedingEdge
LQ Newbie
 
Registered: Jun 2005
Location: Earth
Distribution: SuSE + Fedora + My own
Posts: 4

Rep: Reputation: 0
Getting linux to boot on embedded system


Hi,

I'm trying to get "my own" linux to boot on an embedded system for a robot we're building.

Here's what I did:
I formatted the embedded system's hard drive as an MS-DOS FAT. It's a 512 MB CompactFlash, that goes right into the computer and the BIOS recognizes it as the secondary master drive. (/dev/hdc in linux) It's the exact same kind of flash memory that my digital camera uses. In fact, that's how I work with it; I put it in the camera, connect the USB cable, and windows+linux recognize it as a USB mass storage.

I installed a minimal SuSE on my own desktop computer. Then I copied everything to the little computer's flash memory. I also copied the kernel I built (which works fine on my desktop).

I installed the SYSLINUX bootloader so I could boot from the FAT filesystem.

But when I boot, the kernel says:
Quote:
VFS: Mounted root (msdos filesystem) readonly.
Freeing unused kernel memory: 120K freed
Warning: unable tto open an initial console.
And then it does nothing.

Could this be because the filesystem is FAT? Can linux even run off a FAT? I've heard both ways.

Or maybe the /sbin/init isn't working?

Any help would be appreciated!
 
Old 06-18-2005, 01:56 PM   #2
mmmm
Member
 
Registered: Oct 2004
Location: Poland
Distribution: Slack 10.1, Mandrake 10.1
Posts: 118

Rep: Reputation: 15
This linux probably is working ! Look : this message is only warning ! But it cant write to output (what is that? does it have monitor ? How do you see this message?)

Does it have COM ? If yes :
Try configure this suse (on desktop) to write output to COM ( in /etc/inittab )
then run it on robot, end try using any normal machine connect to com port.
 
Old 06-18-2005, 04:49 PM   #3
BleedingEdge
LQ Newbie
 
Registered: Jun 2005
Location: Earth
Distribution: SuSE + Fedora + My own
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, it has an onboard graphics card which we can connect a monitor to.

It says "Warning", but the system won't work! Even the keyboard stops responding (usually when linux is loading, you can still type as much as you want and it will display it on the screen!)

It has a COM port, but we'd have to build the cables+connectors for it. And I've never connected to another linux box through a COM port.. I don't know how to set it up.

Last edited by BleedingEdge; 06-18-2005 at 04:53 PM.
 
Old 06-19-2005, 06:36 AM   #4
mmmm
Member
 
Registered: Oct 2004
Location: Poland
Distribution: Slack 10.1, Mandrake 10.1
Posts: 118

Rep: Reputation: 15
I think when kernel writes this warning, it stops to use monitor. Can you connect to it any other way ? Does it have ethernet ? If yes you can use ssh or telnet...

To set up console on COM1 :
Add to /etc/inittab :
Code:
 # Run agetty on COM1/ttyS0 and COM2/ttyS1
s0:2345:respawn:/sbin/agetty -L  9600 ttyS0 vt100
Reboot.
Then you need cable. It should be COM -> COM . Then connect it to COM on desktop and to COM on robot. On desktop run minicom. You should see console, as on monitor.

Or you can try to guess which modules is needed in kernel. Maybe , if you have some space on flash, try to compile in every graphic card ? What Motherboard is it ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
The Most Secure Linux System Is Embedded Linux That's Jumpered t3gah Linux - Security 2 06-12-2005 08:49 PM
Writing to an read-only embedded linux system!! cheema Linux - General 1 01-26-2005 04:20 PM
SIZE of "initrd" in accordance with system RAM in an embedded linux ( a busybox) ... rs_javadi Linux From Scratch 0 08-23-2004 01:01 AM
Embedded system. hemanexp Linux - Software 0 01-14-2004 03:58 AM
Who Customize Linux for an Embedded System usage? Rajaee Linux - Software 0 08-18-2003 03:29 AM


All times are GMT -5. The time now is 10:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration