Commit 1871ad51 authored by Jens Korinth's avatar Jens Korinth

Implement SD card generator for PyNQ, ZC706

* extended the zedboard version
* fixed devicetrees, now working out-of-the-box
* automated extraction of root FS
* patching root FS for network stuff, removing Jupyter, but keeping the
  autoresizing, which is pretty neat
* PyNQ is non-trivial to rebuild; decided to extract directly from the
  image
* PyNQ image is downloaded from public URL at Digilent (minimal
  footprint in git)
* not enough space to put linux-xlnx on board; maybe increase image
  size? or provide script to automate the process
parent 3053b5f9
This diff is collapsed.
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Adding Jupyter scripts to bring up network and start Jupyter server
/root/0_resizefs.sh
#/root/1_network.sh >/dev/null 2>&1 &
#/root/2_jupyter_server.sh
#/root/3_pl_server.sh
#/root/4_boot_leds.sh
dhclient eth0
ifconfig eth0:0 down
# Force ntp update
systemctl stop ntp
ntpdate 0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org\
2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org
systemctl start ntp
exit 0
bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rootwait rw earlyprintk
ethaddr=00:0a:35:00:01:20
kernel_load_address=0x3000000
kernel_image=uImage
devicetree_load_address=0x2A00000
devicetree_image=devicetree.dtb
sdboot=if mmcinfo; then load mmc 0 ${kernel_load_address} ${kernel_image} && load mmc 0 ${devicetree_load_address} ${devicetree_image} && bootm ${kernel_load_address} - ${devicetree_load_address}; fi
bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rootwait rw earlyprintk
ethaddr=00:0a:35:00:01:21
kernel_load_address=0x3000000
kernel_image=uImage
devicetree_load_address=0x2A00000
devicetree_image=devicetree.dtb
sdboot=if mmcinfo; then load mmc 0 ${kernel_load_address} ${kernel_image} && load mmc 0 ${devicetree_load_address} ${devicetree_image} && bootm ${kernel_load_address} - ${devicetree_load_address}; fi
autoload=y
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment