Compare commits

...

4 Commits

Author SHA1 Message Date
Pedro Gonçalves
c335688751 mkpackage: update url of lsts server. 2020-08-27 16:05:05 +01:00
Pedro Gonçalves
7a5614f59b rules/rpi5cfs: add rule for config files of uarts for rpi4. 2020-08-25 16:56:06 +01:00
Pedro Gonçalves
f3fb16ec24 systems/lctr-rpi4: update config files, add rule rpi4cfs. 2020-08-25 16:55:32 +01:00
Pedro Gonçalves
db18c1365d update .gitignore config file. 2020-08-25 16:54:42 +01:00
12 changed files with 50 additions and 18 deletions

2
.gitignore vendored
View File

@@ -5,6 +5,8 @@
/lctr-a9xx
/lctr-b1xx
/lctr-b2xx
/lctr-rpi4
/lauv-atom
/qemu-i686
/lauv-aux
/lauv-aux-rpi

View File

@@ -71,22 +71,22 @@ download()
fi
fi
# First try LSTS mirror.
lsts_url="https://www.lsts.pt/glued/$(basename $u)"
download_tool "$lsts_url" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then
# Then try OceanScan-MST mirror.
omst_url="http://www.omst.pt/glued/$(basename $u)"
download_tool "$omst_url" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then
# On failure try upstream URL.
download_tool "$u" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then
echo "ERROR: download failed"
exit 1
fi
fi
fi
# First try LSTS mirror.
lsts_url="https://www.lsts.pt/glued/validPackages/$(basename $u)"
download_tool "$lsts_url" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then
# Then try OceanScan-MST mirror.
omst_url="http://www.omst.pt/glued/$(basename $u)"
download_tool "$omst_url" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then
# On failure try upstream URL.
download_tool "$u" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then
echo "ERROR: download failed"
exit 1
fi
fi
fi
md5="$(md5sum_tool "$cfg_dir_downloads/$file")"
if [ "$s" != "$md5" ]; then

10
rules/rpi4cfs/5uart.bash Normal file
View File

@@ -0,0 +1,10 @@
maintainer=\
(
'Pedro Gonçalves <pedro@fe.up.pt>'
)
target_install()
{
$cmd_cp $pkg_dir/cfs/5uart/* ${cfg_dir_rootfs}/boot/
}

View File

@@ -0,0 +1 @@
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet

View File

@@ -0,0 +1,6 @@
dtoverlay=disable-bt
enable_uart=1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5

View File

View File

@@ -0,0 +1 @@
dwc_otg.lpm_enable=0 console=ttyAMA0 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet

View File

@@ -0,0 +1,2 @@
dtoverlay=disable-bt
enable_uart=1

View File

View File

@@ -0,0 +1,10 @@
maintainer=\
(
'Pedro Gonçalves <pedro@fe.up.pt>'
)
target_install()
{
$cmd_cp $pkg_dir/cfs/default/* ${cfg_dir_rootfs}/boot/
}

View File

@@ -3,7 +3,7 @@ cfg_storage='data0:ext4:/opt'
cfg_modules=''
cfg_services0='network dropbear storage upgrade syslog'
cfg_services2='dune'
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi i2c-tools'
cfg_packages='dropbear rsync busybox e2fsprogs dosfstools ptpd rpcbind rpi-boot-firmware linux/rpi i2c-tools rpi4cfs'
cfg_target_linux_kernel='arch/arm/boot/zImage'
cfg_ptpd_interface='eth0'
cfg_eth_ext_mk='255.255.0.0'

View File

@@ -1,4 +1,4 @@
cfg_hostname='template'
cfg_eth_ext_ip='10.0.20.125'
cfg_packages="$cfg_packages gdb"
cfg_packages="$cfg_packages gdb rpi4cfs/5uart"
cfg_modules="$cfg_modules ftdi_sio rt73usb i2c-dev i2c-bcm2835"