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
Midori - internal or Compact Flash
Does midori run from external compact flash?

New MessageMidori - internal or Compact Flash (modified 0 times) chillywilly
Profile
Hello everyone,

I recently went to an outside computer fair and I picked up a IA-1. I've read all the posts and I was able to figure out that I had the hackable unit.

I cleared the BIOS and was able to change the boot parameters to boot from the external Compact Flash.

I was successful in creating a DOS startup disk on the Compact Flash. I was also able to create the bootable disk with the torito image.

My question is the following, I really don't want to overwrite the internal sansdisk and I would prefer to have my OS start from the external Compact Flash. I have chosen Midori as my OS and I was able to dolly the image to the Compact Flash.

But when the unit initially booted I got the ...., I rebooted and I was able to see messages about Midori loading eventually I got a Kernel Panic error and it just froze. I reread my instructions and I had done everything correctly the only piece of information that I was not able to gather from the list was whether or not the Midori image has to be on the internal Sandisk.

Will Midori run from the External Compact Flash card? If not what can be done to remedy this? I'm a Linux newbie and I really don't have much of a clue as to how to make this possible.

Thanks for your time.

05-17-2002 08:42:02

New MessageRE:Midori - internal or Compact Flash (modified 0 times) radarman
Profile
I'd like to add to this question.

Is there anyway to "decompress" midori and place it on an ordinary ext2 partition? I like Midori, but it uses too much RAM for filesystem stuff. Also, I could add software much more easily if it resembled a more traditional install. Does the midori modified kernel support booting from an ext2 partition?

05-17-2002 12:20:44

New MessageRE:Midori - internal or Compact Flash (modified 0 times) neptune
Profile
chillywilly,

Take a look at the 4th and 5th post in http://www.linux-hacker.net/cgi-bin/UltraBoard/UltraBoard.pl?Action=ShowPost&Board=MSNCompanion&Post=475
where I documented how to get Midori to boot off of the external compactflash (hdc).

Note ignore step 6: I found that if you set the boot order to be A: first, C: second and D: Third, it will boot off of the CF if it is inserted and the internal Sandisk flash if there is no CF in the slot. Not sure why, but it works - YMMV.

05-17-2002 16:15:19

New MessageRE:Midori - internal or Compact Flash (modified 0 times) chillywilly
Profile
Thanks for the info Neptune. Once I have a chance I will try your method.

chillywilly

05-21-2002 07:41:13

New MessageRE:Midori - internal or Compact Flash (modified 0 times) JTLINUX
Profile
Neptune,

Could you please explain step by step your method to boot from CF. I edited the .bin file and changed the references to hda as you said. Then diskprobed the image after the build and I can not get it to boot. I get a flashing cursor on the right hand side of the screen and that is about it. If you can publish your CF image let us know where to get it.

Thanks

JT

05-27-2002 18:12:29

New MessageRE:Midori - internal or Compact Flash (modified 1 times) neptune
Profile
JT,

Hopefully the following should contain the missing detail you need...

First:
======
As a starting point - Make sure that you can successfully get through Steps 1-3 of http://www.php.net/~rasmus/
ie: Make sure that you can get the IA-1 to boot a DOS formatted CF

Second:
=======
Download the Midori3 buildkit from the linux file section of http://www.ia1hacking.com install the buildkit and build the image for hdc:
Note: - I am using Redhat 6.2 to build Midori - newer versions of Linux should also work

The following are the commands I used (all text from the '#' on are comments - do not type these)

su root # Yes - you must be root to unzip and build the midori image
bzcat build_kit_3.tar.bz2 | tar xvf -
cd midori_3/target
xxd cramfsboot.bin > cramfsboot.bin.hex
emacs cramfsboot.bin.hex # Change byte at address 0x1fd from 0x03 to 0x16 with you preferred text editor
xxd -r cramfsboot.bin.hex > cramfsboot.bin
cd ..
# Change all the "hda" references to "hdc" in the following scripts:
emacs root/sbin/freezesh
emacs root/sbin/thaw
emacs root/sbin/init

build


Third:
======
copy the image to the CF:
Note: - I use dolly under W98se with the CF loaded in a PCMCIA adapter seen as the 3rd drive (YSMV). I have my linux drive with the midori .img file mounted to my W98 machine using samba. Note that for dolly to work under all circumstances, W98 should be booted with the PCMCIA adapter+CF inserted. The DOS command line I use is:

dolly mid3hdc.img hd130:


Finally:
========
Set the IA-1 Bios boot order to be A: first, C: second and D: Third, it will boot off of the CF if it is inserted and the internal Sandisk flash if there is no CF in the slot
Load the CF into the IA-1 and turn on the power.

You should see the familiar penguin logo and scrolling text of Midori booting - from hdc.

Please post if you need more detail on any of these steps or run into any roadblocks.

05-31-2002 17:50:52

New MessageRE:Midori - internal or Compact Flash (modified 0 times) chillywilly
Profile
Neptune thanks for the info, but I'm able to follow your instructions up to the part where you say build. Excuse my ignorance, but exactly how do I build? I type build and I get unknown command. You've probably gathered that I'm a newbie to Linux. Any help will be greatly appreciated.

thanks,
chillywilly

06-05-2002 07:50:46

New MessageRE:Midori - internal or Compact Flash (modified 0 times) neptune
Profile
chillywilly,

There is a script named "build" in the midori_3 directory that is created when you untar'd the build kit.

You may have to type ./build to invoke the script if '.' is not in your path.

You should see something like the following

[root@somewhere midori_3]# ./build
KERNEL FILE: /home/neptune/mid_hdc/midori_3/kernel/bzImage
VERSION: 1.0v
KERNEL_CPU: AMD
BUILD_DATE: Wed, 5 Jun 2002 23:26:16 GMT
build: /home/neptune/mid_hdc/midori_3/root/etc/m4i.version: No such file or directory
build: /home/neptune/mid_hdc/midori_3/root/etc/m4i.version: No such file or directory
build: /home/neptune/mid_hdc/midori_3/root/etc/m4i.version: No such file or directory
1+0 records in
1+0 records out
.
. (many lines edited out for clarity)
.
resize: oldsize: 13092864, newsize 13172736
store: /home/neptune/mid_hdc/midori_3/midori.img /home/neptune/mid_hdc/midori_3/image/main.img.packed 4, offset: 2850816
done

06-05-2002 16:48:26

New MessageRE:Midori - internal or Compact Flash (modified 0 times) chillywilly
Profile
Neptune,

Thanks for the info. I tried it and everything is working great.

chillywilly

06-10-2002 09:25:16

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