Start of topic | Skip to actions
Log Of Another Scratchbox qemu InstallationConstruct VMWare MachineUsed a Red Hat Enterprise 4 32 bit image.No problems, other than that, on my network, I have to by pass the Red Hat Login screen by taking the "Why Register?" option. Then I have to ask the administrator to register my image. UbuntuLater I realised using a Ubuntu image might make life easier, since then both scratchbox & it's host would speak Debian....Build qemu
KernelUsed an unpatched 2.6.21Made initrd size 16384 Built with 2007q1-10 toolchain Make initrd file systemMade from ARM_Embedded_Linux-2.3.0First was too large - had to use a framebuffer reference system with no optional packages. Added in the existing sbrsh files - TODO Patch sbrsh-7.4 with my redirection patches. Set up TAP for modelHad to install bridge-utilsRun modelOK.Won't mount external drives until the VMWare machine firewall is turned off. Wont mount the scratchbox drives (to /mnt) until their ids are added to the VMWare /etc/hosts Install scratchboxUp to host qemu OK.sbrsh OK (once the scratchbox drives could be mounted - see above) but still has the timing problem Add latest CodeSourcery arm toolchain as foreign toolchain
Apt-get, darcs problemsIf the scratchbox cant access the internet e.g.[sbox-host_qemu: ~] > darcs get --set-scripts-executable http://scratchbox.org/repos/1.0/sb-toolchain-extras Invalid repository: http://scratchbox.org/repos/1.0/sb-toolchain-extras darcs failed: Failed to download URL http://scratchbox.org/repos/1.0/sb-toolchain-extras/_darcs/inventory libcurl: couldn't resolve hostthen edit /scratchbox/etc/nsswitch.conf to the hosts line: # Original:: hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 # Suggested:: hosts: files dns Install Prebuilt armel X11
[sbox-2007q1_arm_sq: ~] > set | grep arm ARCH=arm SBOX_DPKG_INST_ARCH=arm SBOX_UNAME_MACHINE=arm target=2007q1_arm_sq
Remembered how Debian worksCan't (easily) install armel libc6 without losing the CodeSourcery oneif you empty LD_LIBRARY_PATH, the complains about ld. So
My Preferred Networking SetupAllows
#!/bin/sh # Add tap0 to br0 /sbin/ifconfig $1 up /usr/sbin/brctl addif br0 $1
qemu-system-arm -M versatilepb -kernel <some zImage> -append "console=ttyAMA0 mem=128M root=/dev/ram0" -initrd <some initrd file system> -nographic -net nic -net tap
ip=dhcp root=/dev/nfs nfsroot=<exported root fs>
-- PeterPearse - 30 May 2007
| |||||