# HG changeset patch # User Christophe Lincoln # Date 1394239135 -3600 # Node ID 7a9f08753b3432914a2906223334f337c4c2c633 # Parent 7c5d5748623d31f45be8f6311fba8c45fcd84993 Small clean and up rpi/README diff -r 7c5d5748623d -r 7a9f08753b34 rpi/README --- a/rpi/README Fri Mar 07 23:06:51 2014 +0100 +++ b/rpi/README Sat Mar 08 01:38:55 2014 +0100 @@ -8,13 +8,8 @@ Spi quickstart -------------------------------------------------------------------------------- The Raspberry Pi has a lot of specifications. SliTaz ARM provides 'spi' to build -custom SliTaz Rpi distro images ready to boot. To get the list of available -commands and options: - -# spi help - -Slitaz RPi mirror hosts the prebuilt Linux kernel package. To get the -latest version and unpack it: +custom SliTaz Rpi distro images ready to boot. SliTaz RPi prebuilt Linux kernel +package is hosted on SliTaz mirror. To get the latest version and unpack it: # spi get-linux @@ -23,3 +18,21 @@ # spi gen +Then you can install the distro the the sdcard. It is recommended to use +3 partitions, one for /boot formated in FAT32, second for the swap memory +and third for the root filesystem. You can you gparted of 'fdisk' to create +the needed partitions. Main advantages are: more memory for the RPi and +better security with files permissions. When ready and you know you disk +path (spi ls-dev) you can install SliTaz RPi with: + +# spi install --dev=/dev/sdX + + +Spi commands and options +-------------------------------------------------------------------------------- +To get the list of commands and options with a short help simply run: + +$ spi + + +================================================================================ diff -r 7c5d5748623d -r 7a9f08753b34 sat --- a/sat Fri Mar 07 23:06:51 2014 +0100 +++ b/sat Sat Mar 08 01:38:55 2014 +0100 @@ -32,6 +32,8 @@ $(boldify "Usage:") $(basename $0) [command|--options] +SliTaz ARM Tool - http://arm.slitaz.org + $(boldify "Commands:") gen Generate a distro cpio/gzip initramfs flavors List and give info about flavors @@ -42,8 +44,8 @@ mirror Download or sync the SliTaz ARM mirror $(boldify "Options:") + --kmap Include the system keymap config in the distro --spk Clean or include Spk package manager in the distro - --kmap Include the system keymap config in the distro --noinit Don't create the compressed initramfs --work= Path to work dir with packages and rootfs --size= Specify optional vdisk size (default 20Mb) diff -r 7c5d5748623d -r 7a9f08753b34 spi --- a/spi Fri Mar 07 23:06:51 2014 +0100 +++ b/spi Sat Mar 08 01:38:55 2014 +0100 @@ -7,6 +7,9 @@ # . /lib/libtaz.sh +#: ${arch=armv6hf} +: ${arch=arm} + # Paths [ "$work" ] || work="$(pwd)" distro="$work/distro" @@ -39,14 +42,16 @@ $(boldify "Usage:") $(basename $0) [command] [--option] +SliTaz Raspberry Pi Tool + $(boldify "Commands:") info Display paths and distro info install Install SliTaz RPi to sdcard gen Generate a new SliTaz RPi distro cook-linux Build the Raspberry Pi Linux kernel get-linux Get the SliTaz RPi linux package - get-fw Download or update RPi Firmware - clone-fw Clone the RPi Firmware repository + get-fw Download or update minimal RPi firmware + clone-fw Clone the RPi firmware repository get-tools Download or update RPi Tools (mkimage) get-prebuilt Get a prebuilt SliTaz ARM toolchain oclock Display overclocking information @@ -106,7 +111,20 @@ done } -# Configure overclocking +# RPi Overclocking +show_oclock() { + cat << EOT + +$(boldify "Overclocking modes:") +none 700MHz ARM 250MHz core 400MHz SDRAM 0 overvolt +modest 800MHz ARM 300MHz core 400MHz SDRAM 0 overvolt +medium 900MHz ARM 333MHz core 450MHz SDRAM 2 overvolt +high 950MHz ARM 450MHz core 450MHz SDRAM 6 overvolt +turbo 1000MHz ARM 500MHz core 500MHz SDRAM 6 overvolt + +EOT +} + set_oclock() { case "$oclock" in none) @@ -255,7 +273,7 @@ fi # Overcloking - echo -n "Setting: Overcloking" + echo -n "Setting: Overcloking..." set_oclock; status # Force turbo @@ -284,16 +302,20 @@ # RPi VC libraries if [ "$vc" ]; then + vc="${rootfs}/opt/vc" if [ ! -d "$firmware/opt/vc" ]; then error "Missing firmware git repository" && exit 1 fi - # --hardfp - if [ "$hardfp" ]; then - echo -n "Not yet supported: SliTaz ARMv6hf"; false - else - echo -n "Installing standard: VC libraries" - cp -a ${firmware}/opt ${rootfs} - fi + echo -n "Copying: standard VC libraries" + cp -a ${firmware}/opt ${rootfs} + # --> armv6hf + #cp -a ${firmware}/hardfp/opt ${rootfs} + chown -R root.root ${rootfs}/opt + status + echo -n "Cleaning: VC libraries devel files" + cross_tools="/cross/arm/tools/bin" + rm -rf ${vc}/include ${vc}/src ${vc}/lib/*.a + ${cross_tools}/arm-slitaz-linux-gnueabi-strip -s ${vc}/lib/*.so status fi @@ -305,8 +327,6 @@ cook-linux) # Native SliTaz Toolchain and cross toolchain must be installed check_root - #: ${arch=armv6hf} - : ${arch=arm} install="$data/linux-install" if [ ! -d "/cross/$arch" ]; then error "Missing cross toolchain in: /cross/$arch" @@ -433,16 +453,7 @@ clone_fw ;; oclock) - cat << EOT - -$(boldify "Overclocking modes:") -none 700MHz ARM 250MHz core 400MHz SDRAM 0 overvolt -modest 800MHz ARM 300MHz core 400MHz SDRAM 0 overvolt -medium 900MHz ARM 333MHz core 450MHz SDRAM 2 overvolt -high 950MHz ARM 450MHz core 450MHz SDRAM 6 overvolt -turbo 1000MHz ARM 500MHz core 500MHz SDRAM 6 overvolt - -EOT + show_oclock if [ -f "$boot/config.txt" ]; then boldify "Current config.txt:" cat ${boot}/config.txt