VTP: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
Boiarino (talk | contribs)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
For general information, see [[archlinux]].
== 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''):
Correct u-boot config ('''NOTE:''' have to customize ''ethaddr'' and ''ipaddr''):


autoload=no
  baudrate=115200
  baudrate=115200
  bootargs=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
  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
  bootcmd=run $modeboot
  bootdelay=3
  bootdelay=3
Line 8: Line 42:
  devicetree_load_address=0x2000000
  devicetree_load_address=0x2000000
  ethact=ethernet@e000b000
  ethact=ethernet@e000b000
  ethaddr=CE:BA:F0:03:00:13
  ethaddr=CE:BA:F0:03:00:07
  fdt_high=0x20000000
  fdt_high=0x20000000
  fdtcontroladdr=3ffa9c70
  fdtcontroladdr=3ffa9e30
fileaddr=2080000
filesize=39cf08
  gatewayip=129.57.68.100
  gatewayip=129.57.68.100
  initrd_high=0x20000000
  initrd_high=0x20000000
  ipaddr=129.57.68.84
  ipaddr=129.57.68.43
  kernel_image=uImage
  kernel_image=uImage
  kernel_load_address=0x2080000
  kernel_load_address=0x2080000
kernel_path=linux-install/ArchLinux-armv71
  modeboot=sdboot
  modeboot=sdboot
  netmask=255.255.255.0
  netmask=255.255.255.0
  sdboot=echo TFTPing Image to RAM... && tftpboot ${kernel_load_address} linux-install/ArchLinux-armv71/uImage && tftpboot ${devicetree_load_address} linux-install/ArchLinux-armv71/devicetree.dtb && bootm ${kernel_load_address} - ${devicetree_load_address};
  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
  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
  serverip=129.57.167.14
Line 26: Line 59:
  stdin=serial@e0000000
  stdin=serial@e0000000
  stdout=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};
  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

Latest revision as of 10:50, 7 January 2020

For general information, see archlinux.

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):

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