diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-04-03 15:31:59 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-04-03 15:36:57 +0200 |
commit | 1abf2d383cb2a814fb73f84a076ca0bea2ad1127 (patch) | |
tree | 6f6ceb95cbdb119b28264ce1e04c253699586489 | |
parent | 1c2c0257d8ee7944633ef8e7a356be6a72be09c2 (diff) |
This order makes more sense
-rw-r--r-- | hw/rpi6lowpan.mdwn | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/hw/rpi6lowpan.mdwn b/hw/rpi6lowpan.mdwn index 066bd51..71be9c9 100644 --- a/hw/rpi6lowpan.mdwn +++ b/hw/rpi6lowpan.mdwn @@ -76,6 +76,15 @@ basic support): $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2835_defconfig $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- chrt -i 0 make -j 4 +#### On the tftp server +Move the necessary files to the tftp server (${TFT_IP} being the address of your tftp server): + + $ TFTP_IP=192.168.1.1 + $ scp bluetooth-next/arch/arm/boot/zImage ${TFTP_IP}:/tftpboot/rpi.img + $ scp bluetooth-next/arch/arm/boot/dts/bcm2835-rpi-b-plus.dtb ${TFTP_IP}:/tftpboot/ + +If you're using another PI model copy the corresponding device tree (dtb) file + ### U-Boot We want to boot the kernel using U-Boot so we can conveniently swap out kernels using TFTP. This is mostly copied from http://elinux.org/RPi_U-Boot . @@ -87,29 +96,29 @@ Crossbuild U-Boot $ export PATH=~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH $ export CROSS_COMPILE=/home/agx/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- $ export USE_PRIVATE_LIBGCC=yes + $ cd u-boot $ make rpi_defconfig $ make -j4 -s #### On the RPi -Configure the RPi to use the just built U-Boot (${PI_IP} being the address of your Raspberry Pi): +Now configure the RPi to use the just built U-Boot (${PI_IP} being the +address of your Raspberry Pi). First on copy U-Boot to the Pi: $ PI_IP=192.168.1.2 - $ echo "kernel=u-boot.bin" >> /boot/config.txt - $ scp u-boot/u-boot.bin root@${PI_IP}:/boot/u-boot.bin - $ reboot + $ scp u-boot.bin root@${PI_IP}:/boot/u-boot.bin -#### On the tftp server -Move the necessary files to the tftp server (${TFT_IP} being the address of your tftp server): - - $ TFTP_IP=192.168.1.1 - $ scp bluetooth-next/arch/arm/boot/zImage ${TFTP_IP}:/tftpboot/rpi.img - $ scp bluetooth-next/arch/arm/boot/dts/bcm2835-rpi-b-plus.dtb ${TFTP_IP}:/tftpboot/ +and on the Raspberry Pi boot it by default: -If you're using another PI model copy the corresponding device tree (dtb) file + $ echo "kernel=u-boot.bin" >> /boot/config.txt + $ poweroff #### First Boot (Again mostly from http://elinux.org/RPi_U-Boot). Attach to the serial -console, once U-Boot starts do a +console + + $ screen /dev/ttyUSB<N> 115200 + +then power on the RPi and once U-Boot starts do a $ setenv fdtfile bcm2835-rpi-b-plus.dtb $ setenv bootargs earlyprintk console=ttyAMA0 console=tty1 root=/dev/mmcblk0p2 rootwait @@ -123,7 +132,8 @@ Copy the above commands into a file called boot.src and do a mkimage -A arm -O linux -T script -C none -n boot.scr -d boot.scr boot.scr.uimg -move that to /boot on your pi. Booting will from now on happen automatically. +move that to /boot on your Raspberry Pi. Booting will from now on +happen automatically. ## 6LoWPAN Now that we can quickly change and build kernels lets move to the 6LoWPAN part. |