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 / MSN Companion
Rebuilding the Midori Kernel...
Help?

New MessageRebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
Ok, well, the current kernel in the build kit doesn't support NAT or packet filtering or a host of other things that I need to run my firewall on my IA-1, so I'm gonna have to rebuild the kernel. Unfortunatly it looks like the only way to do this is to rebuild the whole midori system from the ground up, which seems like a lot of work just to get a new kernel. Anyone have any experience with midori build environments and know how I could just recompile the kernel without having to put the full dev environment on my desktop?

Kyle

02-27-2002 02:49:07

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
You can get the source for the kernel from the midori web server. All those mlz files are actually gzipped tar files. The one I used is http://midori.transmeta.com/pub/midori-1.0.0-beta3/apps/linux-2.4.6_ML1.0.0-beta3-4.mlz
02-27-2002 03:35:17

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
Yeah, I just got that and am working on it now. :) Thanks. :)
02-27-2002 03:37:02

New MessageStandard kernel (modified 0 times) RatBastard
Profile
Is this some kind of specially patched kernel tree, or can we just make a kernel based on the .config provided, and drop it into the build kit and ./build?
02-27-2002 10:17:56

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
According to the midori page, the 2.4 kernels they have are heavily edited, so you'll probably need to use theirs. Just pick up the "linux-...." package at http://midori.transmeta.com/ and use that.

Kyle

02-27-2002 13:55:58

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) IMadman
Profile
Kyle - were you working on a guide on how to use the kit to build your own image? =)

Thanx,

Eric

02-27-2002 19:32:27

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
Yup, that I am! I just gotta figure out how to get the kernel built correctly first. :) I've got it building but it tries reading the filesystem as FAT instead of CramFS.... Any ideas? My linux abilities are lacking. :)

Kyle

02-27-2002 19:35:43

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
I'm getting damn good at fixing my own booboos here. I ran the kernel compilation wrong, I ran it like I would a normal kernel compile instead of actually running it with all the patches I needed. I was wondering why my kernel ended up being SMALLER than the original :)

Kyle

02-27-2002 20:29:38

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
Ok, well, I give up. I can't get ANYTHING midori related to compile correctly under my current kernel (RH7.2), apperently Midori has issues with anything above 6.2 due to Bash version issues... Tried hacking the kernel compilation scripts, no luck, kernel won't compile, I've hit the end of my knowledge range on this. So, anyone else ever gotten this working?

Kyle

02-27-2002 21:43:00

New MessageArgh. (modified 0 times) RatBastard
Profile
Ok, this is officially getting irritating.

Why does Midori linux need it's own kernel? If the underlying hardware is supported by stock kernels, why should Midori need something special?

Argh.

02-27-2002 22:50:50

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
It was a pain in the ass for me too. I ended up doing it by not applying some of the patches and messing with it a little. I used redhat 7.2 also.

As for the reasoning for a specialized kernel, I read somewhere that it was because of the need for things like cramfs and ramfs that were not available at the time. It couldn't hurt to try a recent regular kernel to see if it works. Maybe it would work now.

02-28-2002 00:28:33

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
The Midori FAQ says they hacked the crap out of the code, but who knows. There's like, 10 patches you have to apply to the thing before compiling it...

Speaking of, I'm gonna play with the patches some and see if I can't figure out what's adding the -Wp,-time,0,-bandname line to CPP_FLAGS. That's what's catching me on the kernel compile... I tried just removing the flags from the makefile and it did NOT like that.

I'm gonna switch distros on my linux box tomorrow, I'm sick of RH 7.2 and it's wacky gcc version that screws up on EVERY SINGLE large compile I've ever done. Think I'll go to Gentoo or Mandrake...

Kyle

02-28-2002 01:33:17

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
SUCCESS! Sort of.

I got the kernel compiled and implemented, just by taking out some random plugins. However, there's some rather interesting issues, such as only the right 1/3rd of the screen shows up in X (the rest is black), and the USB mouse doesn't work. But this was just a proof of concept build anyways, I'll keep futzing with it. At least I know it can be done. And yes, there will be a HOWTO on this as soon as I can formalize it (I don't think many people would enjoy a how-to containing the step "Screw with random things for 3 days until it works").

Kyle

02-28-2002 02:33:59

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) Karouser
Profile
I too ran into problems with a currant mandrake distro (8.2) and after new hardware arrives will setup a vm of 6.2 to try again I never could get past the segfaults on the compile of the crosscompiler on the initial install of the midori software and to think linus works for transmeta
"there can be only 1" as heard at closed boardmeeting by Gill Bates
02-28-2002 03:50:53

New MessageConfused, questions (modified 0 times) RatBastard
Profile
Ok, I'm confused.

The midori FAQs and docs talk about rebuilding taking a specific linux distro and 1.5G of hard drive space.

If we just want to update the kernel (for instance, I need usb audio) or add truetype fonts or something, do we have to do all of that, or can we just add pieces to the build kit and go?

I tried the latter, by sticking my own kernel on there (from another, jail-bait based install on the IA1) and it failed. Now I understand why, mostly. I didn't have the i2o stuff in my kernel, and the midorit patches weren't there. (Where are those patches?)

It seems like someone (maybe me) should get a "current" linux src tree, do a 'make oldconfig' based on the midori config and see if it works. Has anyone tried this already?

Another question:
If we DO want to rebuild a kernel, assuming that we CAN'T use a "current" kernel, but instead use the 2.4.6-midori kernel, can we build that in the traditional way, or does it have some kind of funky build process?

I mean the usual...
cd /usr/src/linux
make xconfig (or whatever)
make bzImage
make modules

And, I noticed that there is only one module in /lib/modules... is that for a good reason? Should we NOT use modules, but use compiled-into-kernel stuff instead?

Sorry about all of these questions; the notes on midori.transmeta.com are a little light.

02-28-2002 13:02:03

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
The screen problem had me stumped for a while. You've got to run vidmode bzImage 771 (i think) to set the resolution.
02-28-2002 13:03:43

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
RatBastard, it would be interesting to see if a more recent kernel works. I haven't tried it. I think the midori kernel compilation is like a standard compile (though it's the only kernel i've ever compiled, so I can't say for certain).

There's nothing wrong with modules. It's just that they're mostly in the kernel currently. My next one will use modules for the network drivers like Bob's version.

It is kind of a hassle to get it working (or at least it was for me), so if there's anything you can do with modules, I would try that first. Also, I can compile one for you if you send me a configuration file.

02-28-2002 13:24:46

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
Yeah, your vidmode command is right, I'm currently recompiling the build script so that it will work with our own configurations.

I'll try to get the new build script and a how-to up tonight, but this still feels really kinda "hacky". I think a lot of the issue is the RH gcc, personally. But I'm sure the Bash versioning issues is also a problem.

Kyle

02-28-2002 14:03:24

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) Karouser
Profile
mostly I couldnt get the first build to go and after I rebuild my hardware and get rid of some of my funkyhardware I will be trying again (new hardware comeing AMD1800xp+, epox mobo,1gig of ddr2100 hummmmm yummy oh yea gforce card)after all the old hardware of mine takes hours do the compiles.
"there can be only 1" as heard at closed boardmeeting by Gill Bates
02-28-2002 16:54:45

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) IMadman
Profile
Kyle! Ur funny...

Didn't really have anything extra to add. I'm just a GNUbie!

Eric

02-28-2002 20:15:10

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
Hrm, once again, weirdness. The kernel has all of the addins I needed, boots and opens X fine, but now it's not finding anything on the USB (mouse, ethernet adapters, etc...). Is there a patch I forgot? I made sure to include all the USB support in the kernel... The only one I have commented out in the patch list is determinism, because that was generating the gcc compile errors, and that should have nothing to do with USB anyways...

Kyle

02-28-2002 22:08:30

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) DGMage
Profile | Email
On closer inspection of dmesg, I found out UHCI wasn't compiled in. It's nice to have USB hub drivers.
02-28-2002 22:59:39

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) chriscook
Profile
Woohoo..

Thanks to the instructions for the midori kernel build on iahacking.com I was able to patch the kernel with the USBIDE drivers and get a module for my usb harddrive running under midori.

This is for the prolific chip based hard drive caddys that a bunch of us got from compgeeks a while back.

I can make the module available if there is anyone else who needs it.

Chris

03-05-2002 12:53:37

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) Chase
Profile
I haven't seen much or anything on how to build an image for the external flash. I have two ideas around that.

First, build a much larger image on an external CF.

Second, what about a modular approach? A light weight install on the internal CF and then a module with apps on the external CF. You could have a config file in a known place to gather detail on what is installed on the external CF. This is what I plan on trying. I have a 128 Mb CF card without a home.

03-06-2002 19:34:35

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) chriscook
Profile
You wouldn't need to set up anything special like that you could just mount /usr or /usr/local to a partition on the external CF.

For that matter you could use any mount point or create you own, you just need to put entries in the various PATHs to get it recognised.

Specifically what did you want to add?

Chris

03-07-2002 14:40:27

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) Chase
Profile
> Specifically what did you want to add?

Nothing specific... Thats the point I was trying to make. You could swap out CF cards to change the functionality of the IA-1 without having to reflash the internal CF.

Maybe you can put a jukebox on a CF with a small mp3 library or a CF with xv and a bunch of images to make it into a picture frame. Perhaps you could just load a bunch of other apps on the box that don't fit into the 16 Mb flash. Other people have solved this with external drives or microdrives. Seems like overkill.


-=-
03-07-2002 15:42:40

New MessageCan't Use new kernel (modified 0 times) RatBastard
Profile
I tried using the 2.4.17rml source that I've got... no dice.

The theory was that most of the patches in the midori kernel variant have been implemented in the "real" kernel by now. At least, wildwildwes, who is more knowledgable than I, had that theory. So, I tried compiling a newer kernel.

I moved the .config file from the midori build kit into my source tree and did a make oldconfig. Then, I made sure usbaudio was turned on. It was -- which is weird, because if you just look in the /root/lib/modules/2.4.6/usb/ there is no audio.o. This means that the config that's in the build kit isn't actually accurately reflecting what's in the file system. Bummer.

Why did I try this? First, I needed USB audio, which isn't in the midori build kit, so I needed to compile a new kernel anyway. Second, I wanted to add the rml preemptible patches, to make the interface snappier and to keep xmms from hiccupping as much as possible (I'm using my IA1 as a high-quality music output device). Third, I wanted to sortof see if would work, and report back to the group here.

It failed on the packcramfs bits of the init... and later it failed trying to run the VIA sensors code.

I'm going to try getting my usb audio working in the midori stock stuff next.

If anyone has any suggestions, let me know. Thanks!

03-08-2002 00:49:28

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
At least we know it doesn't work now. I might experiment with it myself and look through the midori patches (particularly the cramfs patch) and see if there's anything that could be integrated into a newer kernel to get it to work.

By the way, don't worry about the sensors stuff. That was a remnant from Bob's I-Opener Midori that I forgot to remove from the last version. Oops. The IA-1 does not have that capability.

03-08-2002 20:10:06

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
Success. I'm now using the 2.4.18 kernel with Robert Love's preemptable kernel patch. You just need to apply the addpart patch from the midori kernel. Startup is noticably faster.

If all goes well, I will send qDot my latest image and build kit tonight.

03-10-2002 18:04:12

New MessageExcellent! (modified 0 times) RatBastard
Profile
Good work, Wes.

Thanks for doing that!

It works with the cramfs modifications and everything?

Did you use the .config that's in your build kit for starters, or the one from M4I?

03-10-2002 21:54:46

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
As far as I can tell it has no problems with cramfs or anything else. I used the config file (make oldconfig) from the last ia1 build kit, though the m4i one is nearly the same.

I'm finished with the next revision and I will be sending it to qDot asap. It includes the actual config file I used for 2.4.18.

03-11-2002 01:36:53

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) RatBastard
Profile
Sweet.

Are you adding in the save-able Opera settings bit?

If you can, and it's not a space issue, can you leave in the audio.o from /lib/modules/2.4.nn/usb? It's in the .config, but the file doesn't seem to be in any of the midori's I've tried. It's usb audio, and it's one thing I need.

I do want to do this myself, because I've got some other customizations I want to add (like python) but you guys seem to be much faster than me.

Thanks, Wes.

03-11-2002 09:59:11

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
qDot has already posted it (that was fast), but I included usb audio in the kernel and I can email you the audio.o file if you need it.

Opera settings should now be saved when you freeze configuration. The image is close to being full now so you'll probably have to erase some stuff to add python.

03-11-2002 11:59:41

New MessageUSB audio (modified 0 times) RatBastard
Profile
It works!

Thanks, Wes.

I have to do a mknod to have someplace to play to, and I have to make that in /tmp.

How can I get a real /dev entry in there? Is that something that I can do with the localhost config setup?

03-11-2002 16:53:56

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
One of the problems with it now is that /dev is part of a read only cramfs partition. You could add it to /root/dev in the build kit though.
03-12-2002 16:44:56

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) RatBastard
Profile
It's weird; my usb audio device is creating a node in /dev/mixer1 for itself (I assume via devfs) but it's not making /dev/audio1 or anything like that.

Unfortunately, because it's usb, it might vary in minor number a little bit.

I've got some research to do.

BUT, I have had some time to play around. I'm really happy with what I see. Thanks, again.

By the way, did you remove the 802.11b drivers from there, or just compile-them-into the kernel?

03-12-2002 21:05:46

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
It shouldn't be making anything in /dev dynamically because /dev isn't devfs though that would be nice for a future version.

To be honest, I don't remember what happened the 802.11b driver. If it was in the old config file, it's probably still there. Are you using that? Or are you going to? From the messages on the board, it sounds like people only use the pegasus/kaweth modules. I'd be interested to hear if anyone has gotten something else to work.

03-14-2002 13:28:30

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) RatBastard
Profile
Yeah, I'm going to need to get the prism drivers working.

I know it's possible, because M4I has it stock.

I have had some time to play around with this thing... you've done a really nice job. Thanks.

Some things that I'd like to tackle:
- get the backlight-off to run as a screensaver-type system (happens after inactivity, goes away with mouse-move)
- make a node in /dev for my audio card
- get 802.11b working

Now that the build kit is available again, I'll get on it!

03-14-2002 18:13:20

New MessageRE:Rebuilding the Midori Kernel... (modified 0 times) wildwildwes
Profile
Thanks and good luck with that. I think the backlight screensaver would be especially nice to have.
03-15-2002 14:44:50

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