Debian-wheezy-base-6 Build Notes
From odroid US
Revision as of 13:32, 24 March 2013 by Osterluk (Talk | contribs) (→Update the existing boot scripts)
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
Contents
Boot the Odroid
Login as root user, password=root (the defaults used in the bootstrap process)
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" >/etc/fstab # Mount the boot partition mount /boot # Configure the timezone dpkg-reconfigure tzdata # Allow root to login to serial console echo "ttySAC1" >> /etc/securetty
Update the existing boot scripts
(minor, not actually necessary)
# 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 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
Compile the boot scripts
mkimage -T script -A arm -C none -n 'odroid-u2.hdmi720' -d boot-hdmi720.txt boot-hdmi720.scr mkimage -T script -A arm -C none -n 'odroid-u2.hdmi-1080' -d boot-hdmi1080.txt boot-hdmi1080.scr
Setup sudo for user
As root:
# You need to add yourself to the "sudoers list", and how exactly that is done depends on the distribution. # This hack works for Debian Wheezy # as root, add normal user (named user) to adm group adduser user adm # configure the adm group to have no restrictions echo "%adm ALL=(ALL) ALL" >> /etc/sudoers # sudo will complain if it cannot resolve the hostname echo "127.0.0.1 $(hostname )" >> /etc/hosts
You need to logout/login after making the change to the sudoers list in order for it to take effect