apink
Member
- Joined
- Nov 9, 2009
- Messages
- 66
I installed debian armhf via smilnovi's prodedure and have been using it as my work os since. I haven't tried pandian because of questions about usb-ethernet and because this was up and running before pandian was announced. Following are my notes from the installation. I went through several tries so the notes may not be completely consistent with themselves. Also, I'm not an expert. Mostly I just fumble around 'till stuff works.
install qemu-static-arm on my laptop (has an SD reader on it, running debian)
-installed qemu and qemu-user-static. Qemu-arm-static came along for the ride with one of these.
format SD card to ext2 and mount it
-mount it as root so that there are no 'nodev noexec' flags when you run mount
do a first stage armhf debootstrap
-first stage is triggered by the –foreign flag
# debootstrap --arch=armhf –foreign wheezy tmp/location http://ftp.us.debian.org/debian
copy files in tmp/location into root of sd card.
copy /usr/bin/qemu-static-arm onto SD/usr/bin (this is an important part)
-it's actually qemu-arm-static
mount /proc, /sys, etc as needed
# mount -o bind /dev /mnt/deboot/dev
# mount -o bind /proc /mnt/deboot/proc
# mount -o bind /sys /mnt/deboot/sys
edit:
# mount -o bind /dev /mnt/sdMountPoint/dev
# mount -o bind /proc /mnt/sdMountPoint/proc
# mount -o bind /sys /mnt/sdMountPoint/sys
end edit
make sure that mount shows /mnt/sdMountPoint/sys etc. without noexec and without nodev
chroot SD
# chroot /media/sdcardLocation
second stage armhf debootstrap
# /debootstrap/debootstrap –second-stage
(this work is still being done on the laptop. qemu is invoked and will run stuff in armhf environment)
miscellaneous install stuff as needed
“deb http://ftp.debian.org/debian sid main” goes into /etc/apt/sources.list
then
# apt-get update
# apt-get install xserver-xorg-video-omap3
edit:
-looks like xserver-xorg-video-fbdev is the correct video driver, so
# apt-get install xserver-xorg-video-fbdev
end edit
# apt-get install fluxbox
# apt-get install network-manager
# apt-get install xinit
edit .xinitrc in home directory to include these two lines:
#!/bin/sh
exec startfluxbox
edit /etc/X11/xorg.conf.d/50-nubs.conf to contain:
Section "InputClass"
Identifier "Nubs"
MatchDevicePath "/dev/input/js*"
Driver "joystick"
EndSection
edit:
use "passwd" command to set root password so you can log in as root when you boot from sd on pandora.
end edit
put autoboot.txt into the root of the card, containing:
setenv bootargs root=/dev/mmcblk0p1 rw rootwait vram=6272K omapfb.vram=0:3000K mmc_core.removable=0
ext2load mmc 0 0x80300000 /boot/uImage-3
bootm 0x80300000
-If I remember correctly "exit" gets out of the chroot environment, then you may need to unmount /mnt/deboot/dev, /mnt/deboot/proc and /mnt/deboot/sys to remove the card. I always did but maybe it's not needed. ??
- boot default pandora (superzaxxon)
# xmodmap -pke > my-xmodmap
- umount SD and put it into pandora, mount SD
- copy pandora kernel (/boot, /lib/modules, /lib/firmware) onto SD
- copy /etc/pandora and /usr/pandora from zaxxon into identical spots in new file structure.
(use "cp -r" to get entire directories.)
edit: Use "cp -ar" to preserves user attributes. According to man pages, the "r" is not needed when "a" is used. end edit.
- copy my-xmodmap onto SD
- reboot pandora into debian armhf from SD (reboot with sd card in left slot.)
- ...
-My nubs weren't set to control the mouse, so this:
# echo mouse > /proc/pandora/nub0/mode
# echo mbuttons > /proc/pandora/nub1/mode
# startx
open up terminal (shortcut: alt-Fn-1)
-"my_xmodmap" is a dump of the keyboard mapping from superzaxxon. -needed for characters like "$" and "#".
# xmodmap my_xmodmap
-to toggle usb host mode.
# /usr/pandora/scripts/op_usbhost.sh
***Things that are in notes but may or may not help****
***apt-get install xserver-xorg-video-fbdev
****put “export DISPLAY=:0” in ~/.Xauthority
hope this helps
install qemu-static-arm on my laptop (has an SD reader on it, running debian)
-installed qemu and qemu-user-static. Qemu-arm-static came along for the ride with one of these.
format SD card to ext2 and mount it
-mount it as root so that there are no 'nodev noexec' flags when you run mount
do a first stage armhf debootstrap
-first stage is triggered by the –foreign flag
# debootstrap --arch=armhf –foreign wheezy tmp/location http://ftp.us.debian.org/debian
copy files in tmp/location into root of sd card.
copy /usr/bin/qemu-static-arm onto SD/usr/bin (this is an important part)
-it's actually qemu-arm-static
mount /proc, /sys, etc as needed
edit:
# mount -o bind /dev /mnt/sdMountPoint/dev
# mount -o bind /proc /mnt/sdMountPoint/proc
# mount -o bind /sys /mnt/sdMountPoint/sys
end edit
make sure that mount shows /mnt/sdMountPoint/sys etc. without noexec and without nodev
chroot SD
# chroot /media/sdcardLocation
second stage armhf debootstrap
# /debootstrap/debootstrap –second-stage
(this work is still being done on the laptop. qemu is invoked and will run stuff in armhf environment)
miscellaneous install stuff as needed
“deb http://ftp.debian.org/debian sid main” goes into /etc/apt/sources.list
then
# apt-get update
edit:
-looks like xserver-xorg-video-fbdev is the correct video driver, so
# apt-get install xserver-xorg-video-fbdev
end edit
# apt-get install fluxbox
# apt-get install network-manager
# apt-get install xinit
edit .xinitrc in home directory to include these two lines:
#!/bin/sh
exec startfluxbox
edit /etc/X11/xorg.conf.d/50-nubs.conf to contain:
Section "InputClass"
Identifier "Nubs"
MatchDevicePath "/dev/input/js*"
Driver "joystick"
EndSection
edit:
use "passwd" command to set root password so you can log in as root when you boot from sd on pandora.
end edit
put autoboot.txt into the root of the card, containing:
setenv bootargs root=/dev/mmcblk0p1 rw rootwait vram=6272K omapfb.vram=0:3000K mmc_core.removable=0
ext2load mmc 0 0x80300000 /boot/uImage-3
bootm 0x80300000
-If I remember correctly "exit" gets out of the chroot environment, then you may need to unmount /mnt/deboot/dev, /mnt/deboot/proc and /mnt/deboot/sys to remove the card. I always did but maybe it's not needed. ??
- boot default pandora (superzaxxon)
# xmodmap -pke > my-xmodmap
- umount SD and put it into pandora, mount SD
- copy pandora kernel (/boot, /lib/modules, /lib/firmware) onto SD
- copy /etc/pandora and /usr/pandora from zaxxon into identical spots in new file structure.
(
edit: Use "cp -ar" to preserves user attributes. According to man pages, the "r" is not needed when "a" is used. end edit.
- copy my-xmodmap onto SD
- reboot pandora into debian armhf from SD (reboot with sd card in left slot.)
- ...
-My nubs weren't set to control the mouse, so this:
# echo mouse > /proc/pandora/nub0/mode
# echo mbuttons > /proc/pandora/nub1/mode
# startx
open up terminal (shortcut: alt-Fn-1)
-"my_xmodmap" is a dump of the keyboard mapping from superzaxxon. -needed for characters like "$" and "#".
# xmodmap my_xmodmap
-to toggle usb host mode.
# /usr/pandora/scripts/op_usbhost.sh
***Things that are in notes but may or may not help****
***apt-get install xserver-xorg-video-fbdev
****put “export DISPLAY=:0” in ~/.Xauthority
hope this helps
Last edited by a moderator: