Debian-wheezy-base-6 Build Notes

From odroid US
Revision as of 20:23, 23 March 2013 by Osterluk (Talk | contribs) (Created page with "These are the details of how the debian-wheezy-base-6 package was built Starting from a pristene just-bootstrapped system as described in: [http://odroid.us/mediawiki/index.p...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

These are the details of how the debian-wheezy-base-6 package was built

Starting from a pristene just-bootstrapped system as described in: Image Creation Details

Pick up features requested for previous "minimal" releases: (as root)

apt-get install curl ntp sudo openssh-client uboot-mkimage
# Create persistent MACID want to remove this from distro to avoid dups
echo 6a:63:da:41:24:f1 > /etc/smsc95xx_mac_addr
# change /etc/fstab to mount the boot partition
echo "/dev/mmcblk0p1 /boot vfat noatime 1 2" 
# Mount the boot partition
mount /boot

Update the existing boot scripts: (minor)

# Paste this "here document" into a terminal to create boot scripts and compile them
cat <<EOF_MARK >>boot-hdmi720.txt
    setenv initrd_high "0xffffffff"
    setenv fdt_high "0xffffffff"
    setenv fb_x_res "1280"
    setenv fb_y_res "720"
    setenv hdmi_phy_res "720"
    setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; bootm 0x40008000 0x42000000"
    setenv bootargs "console=tty1 console=ttySAC1,115200n8 fb_x_res=\${fb_x_res} fb_y_res=\${fb_y_res} hdmi_phy_res=\${hdmi_phy_res} root=/dev/mmcblk0p2 rootwait ro mem=2047M"
    boot
EOF_MARK
mkimage -T script -A arm -C none -n 'odroid-u2.hdmi720' -d boot-hdmi720.txt boot-hdmi720.scr


cat <<EOF_MARK >>boot-hdmi1080.txt
    setenv initrd_high "0xffffffff"
    setenv fdt_high "0xffffffff"
    setenv fb_x_res "1920"
    setenv fb_y_res "1080"
    setenv hdmi_phy_res "1080"
    setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; fatload mmc 0:1 0x42000000 uInitrd; bootm 0x40008000 0x42000000"
    setenv bootargs "console=tty1 console=ttySAC1,115200n8 fb_x_res=\${fb_x_res} fb_y_res=\${fb_y_res} hdmi_phy_res=\${hdmi_phy_res} root=/dev/mmcblk0p2 rootwait ro mem=2047M"
    boot
EOF_MARK
mkimage -T script -A arm -C none -n 'odroid-u2.hdmi-1080' -d boot-hdmi1080.txt boot-hdmi1080.scr 

mkimage -T script -A arm -C none -n 'odroid-u2.default' -d boot.txt boot.scr