VTP: Difference between revisions
No edit summary |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
For general information, see [[archlinux]]. | For general information, see [[archlinux]]. | ||
== BOOT image == | |||
Boot image contains two files: ''BOOT.bin'' and ''env.bin''. They can be found in ''/boot'' directory on any of existing VTP boards. To make new microSD card, copy those two files to that card. | |||
== packages installation == | == packages installation == | ||
Reboot the kernel with the root partition mounted 'rw' instead of 'ro': | |||
1. Reboot | |||
USE TSCONNECT: | |||
2. Interrupt the U-boot when you see this: | |||
Hit any key to stop autoboot: | |||
3. Print out the environment variable 'bootargs' | |||
Zynq> printenv bootargs | |||
bootargs=console=ttyPS0,115200 ip=:::::eth0:dhcp nfsroot=129.57.167.16:/vol/diskless/ArchLinux/armv7-devel/root uio_pdrv_genirq.of_id=my-uio ro | |||
rootwait cma=384MB | |||
4. Change the 'ro' to 'rw' (may need to copy in parts) | |||
Zynq> set bootargs "bootargs=console=ttyPS0,115200 ip=:::::eth0:dhcp nfsroot=129.57.167.16:/vol/diskless/ArchLinux/armv7-devel/root | |||
uio_pdrv_genirq.of_id=my-uio rw rootwait cma=384MB" | |||
5. Boot (DO NOT SAVE ENVIRONMENT VARIABLES) | |||
Zync> boot | |||
6. Login as root (through tsconnect or ssh) to use pacman. Usage: | |||
https://wiki.archlinux.org/index.php/pacman | |||
7. Reboot when done. OS should come back with root fs in Read only mode. | |||
== boot information == | == boot information == | ||
Correct u-boot config ('''NOTE:''' have to customize ''ethaddr'' and ''ipaddr''): | Correct u-boot config ('''NOTE:''' have to customize ''ethaddr'' and ''ipaddr'', see below): | ||
autoload=no | autoload=no | ||
Line 36: | Line 66: | ||
Environment size: 1465/131068 bytes | Environment size: 1465/131068 bytes | ||
'''How to configure new VTP''' | |||
In diskless directory, create snapshot directory for the new VTP, for example for adchycal2vtp (have to do it manually, may be improved in future): | |||
ssh root@clon00 | |||
cd /mnt/admin/clonfs1-diskless/ArchLinux/armv7-devel/snapshot | |||
tar xvf templete_vtp.jlab.org.tar | |||
mv templete_vtp.jlab.org adchycal2vtp.jlab.org | |||
Using adapter, copy two files from existing microSd card to the new one: BOOT.bin and env.bin. Preferably, use existing card from test setup VTP, and not from the Hall, to avoid possible conflicts while MAC and IP on the new VTP are not corrected yet. | |||
Place microSD card into new VTP, and install VTP in place. Register new VTP MAC and IP in JNET, and update $CLON_PARMS/vtp_mac_addresses.txt file (that file used by streaming daq only, but still good to have all MACs in one place). | |||
Connect by serial line (tsconnect <vtp_ip_name>), reboot crate, click <Enter> during countdown. Update MAC and IP, for example for adchycal2vtp: | |||
Zynq> printenv | |||
Zynq> setenv ethaddr ce:ba:f0:03:00:c5 | |||
Zynq> setenv ipaddr 129.57.68.247 | |||
Zynq> saveenv | |||
Reboot crate. |
Latest revision as of 17:07, 11 June 2025
For general information, see archlinux.
BOOT image
Boot image contains two files: BOOT.bin and env.bin. They can be found in /boot directory on any of existing VTP boards. To make new microSD card, copy those two files to that card.
packages installation
Reboot the kernel with the root partition mounted 'rw' instead of 'ro':
1. Reboot
USE TSCONNECT: 2. Interrupt the U-boot when you see this: Hit any key to stop autoboot:
3. Print out the environment variable 'bootargs' Zynq> printenv bootargs bootargs=console=ttyPS0,115200 ip=:::::eth0:dhcp nfsroot=129.57.167.16:/vol/diskless/ArchLinux/armv7-devel/root uio_pdrv_genirq.of_id=my-uio ro rootwait cma=384MB
4. Change the 'ro' to 'rw' (may need to copy in parts) Zynq> set bootargs "bootargs=console=ttyPS0,115200 ip=:::::eth0:dhcp nfsroot=129.57.167.16:/vol/diskless/ArchLinux/armv7-devel/root uio_pdrv_genirq.of_id=my-uio rw rootwait cma=384MB"
5. Boot (DO NOT SAVE ENVIRONMENT VARIABLES)
Zync> boot
6. Login as root (through tsconnect or ssh) to use pacman. Usage: https://wiki.archlinux.org/index.php/pacman
7. Reboot when done. OS should come back with root fs in Read only mode.
boot information
Correct u-boot config (NOTE: have to customize ethaddr and ipaddr, see below):
autoload=no baudrate=115200 bootargs=console=ttyPS0,115200 ip=:::::eth0:dhcp nfsroot=129.57.167.16:/vol/diskless/ArchLinux/armv7-devel/root uio_pdrv_genirq.of_id=my-uio ro rootwait bootcmd=run $modeboot bootdelay=3 devicetree_image=zynq-jlab-vtp.dtb devicetree_load_address=0x2000000 ethact=ethernet@e000b000 ethaddr=CE:BA:F0:03:00:07 fdt_high=0x20000000 fdtcontroladdr=3ffa9e30 gatewayip=129.57.68.100 initrd_high=0x20000000 ipaddr=129.57.68.43 kernel_image=uImage kernel_load_address=0x2080000 kernel_path=linux-install/ArchLinux-armv71 modeboot=sdboot netmask=255.255.255.0 sdboot=echo Copying Linux from TFTP server to RAM... && tftpboot ${kernel_load_address} ${kernel_path}/${kernel_image} && tftpboot ${devicetree_load_address} ${kernel_path}/${devicetree_image} && bootm ${kernel_load_address} - ${devicetree_load_address} sdboot_no=if mmcinfo; then echo Copying Linux from SD to RAM... && load mmc 0 ${kernel_load_address} ${kernel_image} && load mmc 0 ${devicetree_load_address} ${devicetree_image} && bootm ${kernel_load_address} - ${devicetree_load_address}; fi serverip=129.57.167.14 stderr=serial@e0000000 stdin=serial@e0000000 stdout=serial@e0000000 tftpboot_no=echo Copying Linux from tftp server to RAM... &&tftpboot ${kernel_load_address} linux_vtp/${kernel_image} &&tftpboot ${devicetree_load_address} linux_vtp/${devicetree_image} &&bootm ${kernel_load_address} - ${devicetree_load_address};
Environment size: 1465/131068 bytes
How to configure new VTP
In diskless directory, create snapshot directory for the new VTP, for example for adchycal2vtp (have to do it manually, may be improved in future):
ssh root@clon00 cd /mnt/admin/clonfs1-diskless/ArchLinux/armv7-devel/snapshot tar xvf templete_vtp.jlab.org.tar mv templete_vtp.jlab.org adchycal2vtp.jlab.org
Using adapter, copy two files from existing microSd card to the new one: BOOT.bin and env.bin. Preferably, use existing card from test setup VTP, and not from the Hall, to avoid possible conflicts while MAC and IP on the new VTP are not corrected yet.
Place microSD card into new VTP, and install VTP in place. Register new VTP MAC and IP in JNET, and update $CLON_PARMS/vtp_mac_addresses.txt file (that file used by streaming daq only, but still good to have all MACs in one place).
Connect by serial line (tsconnect <vtp_ip_name>), reboot crate, click <Enter> during countdown. Update MAC and IP, for example for adchycal2vtp:
Zynq> printenv Zynq> setenv ethaddr ce:ba:f0:03:00:c5 Zynq> setenv ipaddr 129.57.68.247 Zynq> saveenv
Reboot crate.