1. 14 May, 2020 1 commit
    • Rabeeh Khoury's avatar
      Different method to install ubuntu rootfs · 914af8a1
      Rabeeh Khoury authored
      Previously multistrap was used to download and create an ubuntu rootfs;
      but multistrap failed under docker build since it required binfmt
      installed.
      
      This technique of installing ubuntu rootfs is totally different method,
      takes more time to build but works under the native runme.sh script and
      under docker build.
      
      The method idea is -
      1. Build a simple rootfs with a kernel that can be booted via
      qemu-system-aarch64.
      2. Install an initi script called S99bootstrap-ubuntu.sh under
      /etc/init.d.
      3. Run a qemu-system-aarch64 virtual machine with 1GByte of system
      memory and use cortex-a57 which is the closed to cortex-a72,
      virtualization wise and has the buildroot rootf as initrd and the
      destination ubuntu-core.ext4 partition as a drive.
      4. The VM would boot the kernel, mount the rootfs and run the
      S99bootstrap-ubuntu.sh script
      5. The script would download an ubuntu base image and then 'apt install'
      in a virtual chrooted environment the reset of the packages to make this
      rootfs to be bootable.
      6. Use 'reboot' in the VM which triggers the '-no-reboot' flag for qemu
      that makes the vm exit; and thus installation is continued.
      7. ubuntu-core.ext4 partition is now ready to be used further on for
      imaging and installations.
      Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
      914af8a1
  2. 05 May, 2020 1 commit
  3. 04 May, 2020 1 commit
  4. 22 Apr, 2020 1 commit
  5. 13 Apr, 2020 1 commit
  6. 12 Apr, 2020 4 commits
  7. 24 Mar, 2020 1 commit
    • Rabeeh Khoury's avatar
      Unify boot images of SPI, SD and eMMC and automate RCW creation · 20848b19
      Rabeeh Khoury authored
      Using conditional load and jump in RCW and boot=auto as a parameter for
      ATF it is possible now to build a single image that can be booted from
      SPI, SD or eMMC.
      
      Still there is a small difference BL2 stage where on SPI it is located
      on address 0x0 and SD/eMMC is located with 0x1000 (8 blocks of 512
      bytes) offset.
      
      Additional feature is runtime RCW file creation; this will be further
      enhanced to create the SERDES and PLL multipliers creation in runtime
      too.
      Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
      20848b19
  8. 23 Mar, 2020 1 commit
    • Rabeeh Khoury's avatar
      Move from LSDK-19.09 to lx2160a-early-access-bsp0.7 · 9fd49dd6
      Rabeeh Khoury authored
      This commit incorporates the following features / fixes -
      1. Add support for lx2160a-early-access-bsp0.7 which includes rev1 and
      rev 2 support
      2. Split linux/rcw/u-boot patches to be dependent on release based on
      3. rcw added feature to use loadc/jumpc/jump PBI commands to
      differentiate between rev1 and rev2
      
      Under debug -
      1. LX2 rev2 u-boot reset and linux reboot are not functional.
      Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
      9fd49dd6
  9. 03 Feb, 2020 1 commit
  10. 26 Jan, 2020 1 commit
    • Rabeeh Khoury's avatar
      Move to LSDK 19.09 with some new features · 07047528
      Rabeeh Khoury authored
      This patch holds the following modifications and support -
      1. Added support to LSDK 19.09. Notice that conflicting patch
      directories will hold the release prefix (look at patch/linux-*).
      2. We don't use lsdk.config config file any more and added the required
      kernel driver via lx2k_additions.config file
      3. Add 4 eeprom support (512Kb I2C bootable, two SPD and 2Kb for misc)
      Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
      07047528
  11. 12 Jan, 2020 2 commits
    • Rabeeh Khoury's avatar
      kernel: ltc3882: add ltc3882 dc-dc to cex7 device tree · 6797449d
      Rabeeh Khoury authored
      this patch adds ltc3882 to the device tree and exposes it via 'sensors'
      -
      
      as an example -
      root@localhost:~# sensors
      ltc3882-i2c-5-5c
      Adapter: i2c-0-mux (chan_id 2)
      vin:         +12.00 V  (min =  +6.30 V, crit max = +15.50 V)
                             (highest = +12.16 V)
      vout1:        +0.78 V  (crit min =  +0.72 V, min =  +0.73 V)
                             (max =  +0.84 V, crit max =  +0.86 V)
                             (highest =  +0.78 V)
      vout2:        +0.78 V  (crit min =  +0.72 V, min =  +0.73 V)
                             (max =  +0.84 V, crit max =  +0.86 V)
                             (highest =  +0.78 V)
      temp1:        +49.6°C  (high = +85.0°C, crit low = -40.0°C)
                             (crit = +90.0°C, highest = +55.8°C)
      temp2:        +48.8°C  (high = +85.0°C, crit low = -40.0°C)
                             (crit = +90.0°C, highest = +55.3°C)
      temp3:        +53.0°C  (high = +85.0°C, crit low = -40.0°C)
                             (crit = +90.0°C, highest = +57.4°C)
      pout1:         6.13 W
      pout2:         5.87 W
      iout1:        +7.79 A  (max = +50.00 A, crit max = +50.00 A)
                             (highest = +16.44 A)
      iout2:        +7.57 A  (max = +50.00 A, crit max = +50.00 A)
                             (highest = +16.78 A)
      Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
      6797449d
    • Rabeeh Khoury's avatar
      kernel: pci: pci: accept pcie base class id = 0x0 · 021618bc
      Rabeeh Khoury authored
      spr2803 pcie base class id is 0x0; this patch removes the case where it
      doesn't allocate resources for such a device.
      Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
      021618bc
  12. 26 Dec, 2019 2 commits
  13. 26 Nov, 2019 2 commits
  14. 23 Nov, 2019 1 commit
  15. 21 Nov, 2019 1 commit
  16. 18 Nov, 2019 3 commits
  17. 17 Nov, 2019 6 commits
  18. 13 Nov, 2019 1 commit
  19. 12 Nov, 2019 1 commit
  20. 11 Nov, 2019 3 commits
    • Rabeeh Khoury's avatar
      add more build goodies · 09c2501f
      Rabeeh Khoury authored
      1. add buildroot to the build targets (still not used as rootfs).
      2. bootstrap ubuntu 19.04 rootfs using multistrap and
      qemu-aarch64-static
      3. build and install restool under ubuntu rootfs
      4. Image and dtb are added to ubuntu 19.04 partition
      5. The micro SD now contains a file called ubuntu-core.img. That image
      can be copied to NVME drive, SATA drive or USB drive and using it's
      PARTUUID the kernel finds the right root partition and mounts it.
      
      To install the image on NVME M.2 drive; stop u-boot count down and run -
      
      load mmc 0:1 0xa4000000 ubuntu-core.img
      nvme scan
      nvme write 0xa4000000 0 262144
      nvme write 0xac000000 262144 262144
      nvme write 0xb4000000 524288 204800
      
      To install to SATA drive -
      load mmc 0:1 0xa4000000 ubuntu-core.img
      scsi reset
      scsi write 0xa4000000 0 0xb2000
      
      then run 'boot'.
      
      First thing after booting ubuntu -
      1. resize the main partition to include bigger partition than the default.
      2. run resize2fs /dev/nvme0n1p1 or resize2fs /dev/sda1 to enlarge the
      rootfs to new partition
      3. run 'dhclient'
      4. get ntp clock by running 'ntpdate pool.ntp.org'
      5. store clock to RTC chip 'hwclock -w'
      Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
      09c2501f
    • Rabeeh Khoury's avatar
      921ac301
    • Rabeeh Khoury's avatar
      uboot fixes - · db2183ec
      Rabeeh Khoury authored
      0007... dpl load into 0x80001000 fixes the 1Gbps network and all other ports
      0008... adds NVME support to u-boot and distroboot
      Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
      db2183ec
  21. 05 Nov, 2019 1 commit
  22. 26 Sep, 2019 2 commits
  23. 12 Sep, 2019 2 commits