Hackable:1 under Qemu
for pennyless hackers
You need:
+ qemu-neo1973, from openmoko (use the mokomakefile, make qemu, if you get a weird error from mokomakefile see below)
+ a working uboot (as of 09/01/04, the "daily" one doesn't work great)
e.g. http://trac.hackable1.org/trac/raw-attachment/wiki/H1_under_Qemu/uboot-ok.bin
+ a GNU/Linux box, fdisk, kpartx, tar...
Download image content
wget http://download.hackable1.org/h1-fat_partition.tgz wget http://download.hackable1.org/h1-ext2_partition-rev2.tar.gz
Creation of the image
Get creation script
wget http://trac.hackable1.org/trac/raw-attachment/wiki/H1_under_Qemu/create_SD_image.sh
Make it executable
chmod a+x create_SD_image.sh
Start it
./create_SD_image.sh
If you want more output from the create script, do this
BUCKET=/tmp/more_output ./create_SD_image.sh cat /tmp/more_output
Booting up
# cd path/to/openmoko/qemu/openmoko # wget http://zecrazytux.net/Bordel/h1/flash-h1.sh # (also attached to this page) # wget http://zecrazytux.net/Bordel/h1/uboot-ok.bin # (also attached to this page) # cd ..; openmoko/flash-h1.sh $ wget http://zecrazytux.net/Bordel/h1/run-h1.sh # (also attached to this page) $ vi run-h1.sh $ ./run-h1.sh
Mokomakefile errors - OUTDATED
If you get this error while compiling qemu-neo1973 :
[ -e images/openmoko ] || mkdir -p images/openmoko
ln -sf `pwd`/openmoko/trunk/src/host/qemu-neo1973/openmoko/env images/openmoko/env
( cd images && ../openmoko/trunk/src/host/qemu-neo1973/openmoko/download.sh )
/usr/bin/gmake
which: no gecho in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2:/usr/games/bin)
Retrieving available builds list...
Trying alternative sources
Kernel is... not found
make: *** [download-images] Erreur 255
Do the following :
# wget --no-check-certificate https://trac.hackable1.org/trac/raw-attachment/wiki/H1_under_Qemu/mokorepofix.diff # patch -p0 < mokorepofix.diff
then run again :
# make qemu
This patch fixes an error in the env file of openmoko that makes the download process try to download from a non-existent location the current devel image.
It will obviously not be needed anymore when the openmoko developpers will fix the issue !
This step is obsolete, an updated patch is needed and will be provided soon.
replace Xglamo by xfbdev
Install xserver-xfbdev and delete the link: /usr/bin/X and create a new one from /usr/bin/Xfbdev
Attachments
-
uboot-ok.bin
(198.2 KB) -
added by zecrazytux 3 years ago.
working uboot for qemu
-
flash-h1.sh
(5.4 KB) -
added by zecrazytux 3 years ago.
flash.sh script for qemu-neo1973 from openmoko, to enable boot from SD
-
run-h1.sh
(337 bytes) -
added by zecrazytux 3 years ago.
run qemu (easier than typing the whole command line :p)
-
create_SD_image.sh
(2.3 KB) -
added by stappers 3 years ago.
create SD image for QEMU
-
mokorepofix.diff
(674 bytes) -
added by kegeruneku 3 years ago.
Mokomakefile OM repository change fix
