Commit Graph

191 Commits

Author SHA1 Message Date
Rabeeh Khoury 75bb527dc4 more kernel static and modules to be built
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-12-26 19:17:16 +02:00
Rabeeh Khoury abaeb8cdaf
Merge pull request #10 from olofj/nvme-fixes
patches: u-boot: add nvme fixes from upstream
2019-11-26 20:46:13 +02:00
Rabeeh Khoury 2d6fd6838f
Merge pull request #9 from dmarion/fix-nvme-init
Fix NVMe init issue
2019-11-26 20:45:40 +02:00
Olof Johansson 301933291a patches: u-boot: add nvme fixes from upstream
I think the critical ones are really around cache management. With these,
I can consistently boot from NVMe (Samsung 970 Pro).

Signed-off-by: Olof Johansson <olof@lixom.net>
2019-11-22 17:45:52 -08:00
Damjan Marion 38d109c74f u-boot:add patch to fix NVMe boot
Signed-off-by: Damjan Marion <dmarion@me.com>
2019-11-21 19:50:16 +01:00
Rabeeh Khoury b8cd48fec5
Merge pull request #8 from olofj/fix-docker
A few more docker/script fixes
2019-11-18 21:49:10 +02:00
Olof Johansson 3a3eccee4a runme: download buildroot sources separately, add -j
Signed-off-by: Olof Johansson <olof@lixom.net>
2019-11-18 10:20:32 -08:00
Olof Johansson 8b7c2de6dc docker: add packages expected by buildroot
Signed-off-by: Olof Johansson <olof@lixom.net>
2019-11-18 09:55:47 -08:00
Olof Johansson bffe146cbb runme: Use all online processors as make -j arg
Signed-off-by: Olof Johansson <olof@lixom.net>
2019-11-17 15:46:27 -08:00
Olof Johansson c0950b4f8b README.md: Update docker instructions to add SYS_ADMIN/loop
Signed-off-by: Olof Johansson <olof@lixom.net>
2019-11-17 15:46:27 -08:00
Olof Johansson 788587023d docker: let build user sudo without password
Signed-off-by: Olof Johansson <olof@lixom.net>
2019-11-17 15:46:27 -08:00
Olof Johansson 575727d13c docker: run script from /work without root user env
Running from /work means output is saved properly between runs (no
re-downloads).

Also, sudo -E passed in environment variables such that git was trying
to get the config from /root, which obviously didn't work when running
as a build user.

Signed-off-by: Olof Johansson <olof@lixom.net>
2019-11-17 15:46:26 -08:00
Rabeeh Khoury 2ef4356395
Merge pull request #7 from olofj/docker-packages
docker: add missing packages for script
2019-11-18 01:12:16 +02:00
Olof Johansson 5d555c65a6 docker: add missing packages for script
runme.sh checks for these and fails, so add them during image creation.

Signed-off-by: Olof Johansson <olof@lixom.net>
2019-11-17 14:36:07 -08:00
Rabeeh Khoury 5eeed60bc8 More kernel modules and Ubuntu packages
The patch adds AMD GPU modules to the kernel build, and instsall
iptables and rng-tools to the basic Ubuntu image.

Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-11-13 13:05:31 +02:00
SolidRun Docker Tools 36bd34feaf docker: preserve environment variables
Signed-off-by: Josua Mayer <josua@solid-run.com>
2019-11-12 13:56:15 +01:00
Rabeeh Khoury 09c2501f33 add more build goodies
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: Rabeeh Khoury <rabeeh@solid-run.com>
2019-11-12 00:42:07 +02:00
Rabeeh Khoury 921ac30134 add buildroot and linux kernel extra configs
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-11-12 00:39:58 +02:00
Rabeeh Khoury db2183ec45 uboot fixes -
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: Rabeeh Khoury <rabeeh@solid-run.com>
2019-11-12 00:38:37 +02:00
Rabeeh Khoury 282ef06292 rcw fixes
1. Set IRQs, EVT and others as GPIOs
2. Enables Serdes group 2 to neogotiate PCIe gen3
3. Set SPI divisor to 28 to meet 700MHz fabric clock

Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-11-05 10:37:39 +02:00
Rabeeh Khoury 5a25d707fe Merge branch 'master' of github.com:SolidRun/lx2160a_build 2019-09-26 22:56:39 +03:00
Rabeeh Khoury e25e10586d fix script exit which checking tools
which $i exits with an error code that makes the script exit
ignore those exit codes only when checking for tools

Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-09-26 22:54:33 +03:00
Rabeeh Khoury 43b7f86789
Merge pull request #1 from daniel-thompson/master
runme: Use --keep-cr when applying edk2-platforms patches
2019-09-12 18:31:45 +03:00
Daniel Thompson cf25a04464 runme: Use --keep-cr when applying edk2-platforms patches
Currently the container build doesn't work because git in the container
needs configuration to correctly handle the CR line endings in
0003-lx2160a-fix-Pcie-bar-allocation.patch. Fix this.
2019-09-12 10:57:02 +01:00
Rabeeh Khoury 153fb79dab amc6821: manually hacking the amc6821 pwminv patch
amc6821 is not assembled anymore on LX2160A COM module rev 1.3.
it will be assembled in new revision; in order to avoid confusion where
it's pwm needs to be inverted or not.

Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-09-11 09:53:06 +03:00
Rabeeh Khoury 01bdb50e1b uefi: fix pcie bar allocation
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-09-10 16:59:02 +03:00
Josua Mayer dff79d20fb create container build environment 2019-07-30 14:40:48 +02:00
Rabeeh Khoury 4ec41a94ab Make UEFI build RELEASE/DEBUG a variable 2019-07-29 12:35:36 +03:00
Rabeeh Khoury 96cf503ae7 added .gitignore
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 17:25:29 +03:00
Rabeeh Khoury 054ec3db19 more runme.sh fixes
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 16:54:43 +03:00
Rabeeh Khoury 2235d2e537 updates for runme.sh
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 16:14:28 +03:00
Rabeeh Khoury ee8e849b24 edk2-platforms patches
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 15:54:28 +03:00
Rabeeh Khoury b350a969d5 mc-util patches
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 15:09:02 +03:00
Rabeeh Khoury 5a56e81196 rcw patch
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 15:08:49 +03:00
Rabeeh Khoury 10c5ead0eb linux patches
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 15:08:32 +03:00
Rabeeh Khoury f383cd50cd Add newline to README.md
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 14:35:23 +03:00
Rabeeh Khoury 3284f7b6ad Add newlines to README.md 2019-07-28 14:34:45 +03:00
Rabeeh Khoury 7a8b4d02b0 u-boot patches
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 14:17:22 +03:00
Rabeeh Khoury 3aea5c4ebb atf patches
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 14:17:13 +03:00
Rabeeh Khoury 17859cf699 Initial readme.md file
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 14:17:01 +03:00
Rabeeh Khoury 4ea92ddc12 runme.sh script
Can build SD/xspi bootable images, with different SERDES and DDR speed
RCW parameters.
The boot loader can be u-boot or uefi.

Based on LSDK-19.06 releases with patches to support SolidRun LX2160A
COM express type 7 modules; and HoneyComb as carrier board.

Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
2019-07-28 12:39:26 +03:00