I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / WebPal
Help! Unable to open an initial console...

New MessageHelp! Unable to open an initial console... (modified 3 times) eliteflight
Profile | Email
I've followed all the directions posted on websites by bigbrd and others, and have successfully...

- modified the hardware (cut JP1, added IDE header)
- reprogrammed the flash with the wpflash utility
- copied the Debian potato base root filesystem to an IDE hard drive (partitioning and copying were done with the drive in another Linux box)

The webpal boots, identifies the IDE drive (as /dev/hda), reports "VFS: mounted root (ext2 filesystem)", but then prints "Warning: unable to open an initial console" and stops. The screen eventually goes blank, some *something* must be running.

If I wipe out the root filesystem, the kernel panics because it can't find an init. If I remove the hard drive, the kernel panics because it can't mount hda. But in all three cases, I get the "initial console" message. I have also tried the various webpal kernels with IDE support that are available on the web, all with identical results.

Is there something more I need to configure? Can someone burn their filesystem (& configuration) onto a CD for me (or upload it to my ftp site)?

Thanks!

By way of background, I'm an experienced embedded systems engineer, but this is my first foray into Linux porting, so I'm basically ignorant of all the technical details involved. I picked up several webpals as part of another project I'm working on, but then decided it's about time I learned Linux. For those who are curious, my website http://eliteflight.com/tech has some info on other past/present projects.

05-08-2004 13:10:03

New MessageRE:Help! Unable to open an initial console... (modified 0 times) bigbrd
Profile
This message is put out by the kernel when it tries to open "/dev/console" to pass it as the input/
and output device for /etc/init. See line 820 or so in init/main.c in the kernel source tree.

Check if your root partition has a /dev/console. Make sure it points to character device 5,1. Did you enable console
support in the kernel, eg...

CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_FB_WEBPAL=y

Bill

05-08-2004 19:04:10

New MessageRE:Help! Unable to open an initial console... (modified 0 times) eliteflight
Profile | Email
I've been using the pre-built kernels I've found on the various webpal websites. I guess the next step is to build the kernel myself, and start debugging. Yes, I'd rather learn for myself, than have someone just hand it all to me, but I do have some newbie-type questions:

* Can I use the kernel source that came with the RedHat 9 distribution running on my host machine, or are there special patches required?
* Is the cross-2.95.3.tar.bz2 toolchain (from ftp.arm.uk.linux.org) the one I should be using?

I've been trying to follow the directions on Tom Walsh's openhardware.net website, but when I attempt to access his CVS server with the command

cvs -d:pserver:anonymous@cvs.cyberiansoftware.com:/home/cvs login

and hit enter at the password prompt (no password), I get an error message saying

cvs [login aborted]: connect to cvs.cyberiansoftware.com(64.179.36.98):2401 failed: No route to host

The page hasn't been updated in more than a year; is the CVS server still up? If so, maybe it's a problem with my firewall.

Thanks for the answers, and any other pointers you may have to offer!

05-09-2004 16:02:40

New MessageRE:Help! Unable to open an initial console... (modified 0 times) bigbrd
Profile
Yes, the toolchain mentioned on webpal.bigbrd.com and Tom's page is what you want. The toolchain tar file must be installed in a particular locations since there are hardcoded links in the tar file, so follow the instructions on Tom's page...he appears to give the correct directory to use. After you untar the files, you should have a /usr/local/arm/2.95.3/arm-linux/bin directory which you want to add to your path. This directory has the binaries with names like arm-linux-gcc, etc. For speical cases where you want to use "gcc" and have it pick the ARM gcc rather than the native one, /usr/local/arm/2.95.3/arm-linux/bin in your path before /usr/bin will override the normal native gcc.

For kernel source, you'll need to get the correct version from kernel.org, then apply the correct rmk page, then the wp2 patch. Just stick everything on some directory other than /usr/src/linux it doesn't conflict with any x86 kernel building you might be doing. There are links on the webpal.bigbrd.com webpage to the correct verions. One warning: due to a mistake by me, the current patch flashes the lamps backwards from before, e.g. now RED LED flashes once per second, and YELLOW LED one indicates busy.)

There is also a .config file that you can use as a starting point on webpal.bigbrd.com.

In terms of what to use for /, some people use, as you are, various ARM Debian pieces. I use uclibc based things. I've got a uclibc
based set of files both for cross-compiling and also I've built the uclibc ARM builddir stuff which allows one to actually compile things on the webpal. Don't
get to excited about compiling things on the webpal itself...it is about 50-100 times SLOWER than my AMD 2800+ PC system! So, if it takes a minute to compile on the PC, its now an hour. Unfortunately, the uclibc builddir stuff builds for a later processor than the webpal. This is because its using the 3.x gcc compiler, which, for the ARM, seems to default to a later processor. I manunally patched it to be for the webpal, but I don't have an automated way of doing thing. This isn't an issue for the 2.x gcc compiler above for the kernel building above or if you build any 2.x based uclibc cross-compiling system.

Generally, I prefer the cross compiling, since its so much faster, however, some programs insist on running things on the host processor during building, which obviously doesn't work when cross-compiling...many of these can be worked around by telling the configuration programs the correct answer but its a pain.

Which method you will want to use (prebuild ARM Debian or build-it-all-yourself uclibc) depends on what you want to do with the final system. I was more interested
in building small embedded systems that use the serial port as the console, so I've just build things myself using uclibc.

Feel free to email me directly if you want. See bottom of first page of webpal.bigbrd.com for email address. We could try exchanging some of my smaller
root images and see if they work...plus I've got some newer kernels that worked with the video side of things which is what I assme you are using for your console ?

Bill

05-09-2004 17:22:09

New MessageRE:Help! Unable to open an initial console... (modified 2 times) kazymyr
Profile
I have 2 newly built toolchains for webpal: one with gcc-2.95.3 and glibc-2.2.5, and the other with gcc-3.2 and the same glibc. Both using includes from kernel 2.4.18. Build system was Slackware 9.1, but that shouldn't matter. If there's demand I could tar-bzip them and put them on my web server. They're pretty big though (hundreds of megs).
05-10-2004 08:58:14

New MessageRE:Help! Unable to open an initial console... (modified 0 times) kazymyr
Profile
Done. There are 2 toolchains on my site now:
webpal-295.tar.bz2 is the toolchain with gcc-2.95.3 and glibc-2.2.5, and includes from kernel 2.4.18 (patched). Unpack in /usr/local/, it will install in /usr/local/webpal-295

webpal-arm.tar.bz2 has gcc-3.2, glibc-2.2.5 and kernel sources (2.4.18 patched and configured). Install the same, it will end up in /usr/local/webpal-arm. Before you compile a kernel make sure you run menuconfig again and set the options you want.

URL: http://ctamasd.dtdns.net:22/webpal

05-10-2004 11:54:47

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3