Difference between revisions of "Debian-wheezy-base-6 Build Notes"
From odroid US
(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...") |
(→Update the existing boot scripts) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Starting from a pristene just-bootstrapped system as described in: [http://odroid.us/mediawiki/index.php?title=Debian_Wheezy_Instructions#Image_Creation_Details Image Creation Details] | Starting from a pristene just-bootstrapped system as described in: [http://odroid.us/mediawiki/index.php?title=Debian_Wheezy_Instructions#Image_Creation_Details Image Creation Details] | ||
+ | === Boot the Odroid === | ||
+ | Login as root user, password=root (the defaults used in the bootstrap process) | ||
− | Pick up features requested for previous "minimal" releases | + | === Pick up features requested for previous "minimal" releases === |
+ | as root: | ||
<pre> | <pre> | ||
apt-get install curl ntp sudo openssh-client uboot-mkimage | apt-get install curl ntp sudo openssh-client uboot-mkimage | ||
Line 9: | Line 12: | ||
echo 6a:63:da:41:24:f1 > /etc/smsc95xx_mac_addr | echo 6a:63:da:41:24:f1 > /etc/smsc95xx_mac_addr | ||
# change /etc/fstab to mount the boot partition | # change /etc/fstab to mount the boot partition | ||
− | echo "/dev/mmcblk0p1 /boot vfat noatime 1 2" | + | echo "/dev/mmcblk0p1 /boot vfat noatime 1 2" >/etc/fstab |
# Mount the boot partition | # Mount the boot partition | ||
mount /boot | mount /boot | ||
+ | # Configure the timezone | ||
+ | dpkg-reconfigure tzdata | ||
+ | # Allow root to login to serial console | ||
+ | echo "ttySAC1" >> /etc/securetty | ||
</pre> | </pre> | ||
− | Update the existing boot scripts | + | === Update the existing boot scripts === |
+ | (minor, not actually necessary) | ||
<pre> | <pre> | ||
# Paste this "here document" into a terminal to create boot scripts and compile them | # Paste this "here document" into a terminal to create boot scripts and compile them | ||
− | cat <<EOF_MARK | + | cat <<EOF_MARK >boot-hdmi720.txt |
setenv initrd_high "0xffffffff" | setenv initrd_high "0xffffffff" | ||
setenv fdt_high "0xffffffff" | setenv fdt_high "0xffffffff" | ||
Line 28: | Line 36: | ||
boot | boot | ||
EOF_MARK | EOF_MARK | ||
− | |||
− | cat <<EOF_MARK | + | cat <<EOF_MARK >boot-hdmi1080.txt |
setenv initrd_high "0xffffffff" | setenv initrd_high "0xffffffff" | ||
setenv fdt_high "0xffffffff" | setenv fdt_high "0xffffffff" | ||
Line 41: | Line 48: | ||
boot | boot | ||
EOF_MARK | EOF_MARK | ||
+ | </pre> | ||
+ | |||
+ | Compile the boot scripts | ||
+ | <pre> | ||
+ | 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 | mkimage -T script -A arm -C none -n 'odroid-u2.hdmi-1080' -d boot-hdmi1080.txt boot-hdmi1080.scr | ||
− | + | </pre> | |
+ | === Setup sudo for user === | ||
+ | As root: | ||
+ | <pre> | ||
+ | # 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 | ||
</pre> | </pre> | ||
+ | You need to logout/login after making the change to the sudoers list in order for it to take effect |
Latest revision as of 13:32, 24 March 2013
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