Changes between Version 14 and Version 15 of ventana/ubuntu


Ignore:
Timestamp:
08/03/2018 03:14:50 PM (6 years ago)
Author:
Tim Harvey
Comment:

update bootscript to support a larger ramdisk size (old default load addresses restricted it to 32MB)

Legend:

Unmodified
Added
Removed
Modified
  • ventana/ubuntu

    v14 v15  
    364364cat << EOF > /tmp/bootscript
    365365
     366# calculate load addresses based off of loadaddr as the base
     367# and allow 128KB for FDT and 64MB for kernel
     368setexpr fdt_addr \$loadaddr
     369setexpr linux_addr \$fdt_addr + 0x20000 # allow 128KB for FDT
     370setexpr rd_addr \$linux_addr + 0x4000000 # allow 64MB for kernel
     371
    366372# if nand|usb dtype use initrd - sata|mmc don't require initrd
    367373if itest.s "x\${dtype}" == "xnand" ; then
     
    372378  ubifsload \$fdt_addr boot/\$fdt_file2
    373379  test -n "\$fixfdt" && run fixfdt
    374   ubifsload \$loadaddr boot/uImage
    375   ubifsload 16000000 boot/uramdisk
     380  ubifsload \$linux_addr boot/uImage
     381  ubifsload \$rd_addr boot/uramdisk
    376382  ubifsumount
    377   bootm \$loadaddr 16000000 \$fdt_addr
     383  bootm \$linux_addr \$rd_addr \$fdt_addr
    378384elif itest.s "x\${dtype}" == "xusb" ; then
    379385  echo "Booting from usb..."
     
    383389  ext4load usb 0:1 \$fdt_addr boot/\$fdt_file2
    384390  test -n "\$fixfdt" && run fixfdt
    385   ext4load usb 0:1 \$loadaddr boot/uImage
    386   ext4load usb 0:1 16000000 boot/uramdisk
    387   bootm \$loadaddr 16000000 \$fdt_addr
     391  ext4load usb 0:1 \$linux_addr boot/uImage
     392  ext4load usb 0:1 \$rd_addr boot/uramdisk
     393  bootm \$linux_addr \$rd_addr \$fdt_addr
    388394fi
    389395EOF
    390396mkimage -A arm -O linux -T script -n "bootscript" \
    391397  -d /tmp/bootscript /boot/6x_bootscript-ventana
     398rm /tmp/bootscript
    392399}}}
    393400 a. Gateworks pre-built downstream vendor kernel: 3.14 kernel supporting full video input (which is not currently in upstream Linux) - ** use this if you are going to be using video input **