Commit Graph

1004 Commits

Author SHA1 Message Date
Dmitrii Okunev
cbacce757d fix(intel/hw): A typo: log.Fatal -> log.Fatalf
Signed-off-by: Dmitrii Okunev <xaionaro@meta.com>
2024-09-20 13:25:37 +02:00
KuiRong
badd59a0b7 mainboards: Fix kernel version to pass CI
Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
KuiRong
383b97df30 mainboards: Update docker build support
Current support mainboards:

aeeon/i11
aeeon/up
aeeon/upxtreme
amd/rome
ampere/jade
bytedance/g220a
cubie/board
digitalloggers/atomicpi
hpe/dl360gen10
intel/generic
intel/hw
intel/minplatform
intel/s2600
lenovo/hr630
lenovo/sr630
lenovo/thinkpad
marvel/macchiatobin
opentitanpilot/dresden
pcengines/apu
pcengines/apu2
qemu/arm64
qemu/x86_64
seeed/beaglev
slimboot
solidrun/honeycomblx2k
st/st32mp1517c
sunxi/nezha
tianocore/ovmf
tyan7106
walmart/robot

Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
KuiRong
920a693c62 walmart/robot: Change cross compiler tool to pass CI
there is a different between armel and armhf,
they adopt different strategies for dealing with
floating-point operations.

Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
KuiRong
2689e369c4 tyan7106: Update kernel to 5.15
Add key.pub and ssh_host_rsa_key to for docker build.

Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
KuiRong
0ee818cbca intel/generic: Update kernel version and config
update kernel version and config to 5.15
config-5.15.0 is same as config-5.4.0

Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
KuiRong
bad5a12b60 hpe/dl360gen10: Update kernel version and config
update kernel version and config to 5.15
cofig-5.15 is same as config-5.4

Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
Chiao Yang
27a1b3f1d2 intel/generic: correct typo
Signed-off-by: Chiao Yang <chiao.cs.yang@gmail.com>
Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
Chiao Yang
84d85c432b ampere/jade: Fix patch and go get for cpud
Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
Chiao Yang
2b68bc345a ampere/jade: Upgrade kernel to 5.15
Signed-off-by: Chiao Yang <chiao.cs.yang@gmail.com>
Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
Chiao Yang
828da469b2 mainboards: Fix kernel version to pass CI
Signed-off-by: Chiao Yang <chiao.cs.yang@gmail.com>
Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
Chiao Yang
f648c93105 mainboards: Add docker build support
Add docker build support to unify the build environment for
mainboards.

Current supported mainboards:

Signed-off-by: Chiao Yang <chiao.cs.yang@gmail.com>
Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
Chiao Yang
a297524f04 Add more file types for .gitignore
Signed-off-by: Chiao Yang <chiao.cs.yang@gmail.com>
Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
Chiao Yang
4831fcc904 qemu/arm64: Adjust QEMU parameters
Signed-off-by: Chiao Yang <chiao.cs.yang@gmail.com>
Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
Chiao Yang
f632136b6d qemu/x86_64: Adjust QEMU parameters
Signed-off-by: Chiao Yang <chiao.cs.yang@gmail.com>
Signed-off-by: KuiRong <605470060@gms.tku.edu.tw>
2024-01-18 21:54:59 -08:00
Nhi Pham
c72e499418 ampere/jade: Specify the -uroot-source path
Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
2023-03-13 11:24:41 -07:00
Nhi Pham
29e6406b19 ampere/jade: Fix geturoot failling to download u-root/cpu
For go version 1.17, the 'go get' command is a combination of
downloading and installing a package. We have to use -d flag to skip
installing the package. For future go versions, the -d flag will be
enabled by default, so we have to use 'go install' to install the
package instead.

This patch also fixes the go/u-root version to avoid unexpected
compatibility issue between golang and u-root. Without specifying the
version, the go always gets the latest version.

Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
2023-03-13 11:24:41 -07:00
Ronald G. Minnich
996bb18ef9 i11, atomicpi, nezha: clean up, catch up
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-06-27 17:20:31 -07:00
Ronald G. Minnich
6ab5f77d2c aeeon/i11: update to 5.17-rc3, it has 9p fixes.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-06-27 17:20:31 -07:00
Ronald G. Minnich
82e20b9938 Include a basic cpio in the initramfs, for testing kexec
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-06-27 17:20:31 -07:00
Ronald G. Minnich
b3a8562d86 qemu/x86_64: add tweaks to make debugging easier
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-06-27 17:20:31 -07:00
Ronald G. Minnich
b32b9662df aeeon/i11: update to 5.17
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-06-27 17:20:31 -07:00
Ronald G. Minnich
5078d716b1 More bits and pieces for i11 kexec and 9p testing
the upstream kernel broke 9p, so there was bisection needed.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-06-27 17:20:31 -07:00
Ronald G. Minnich
9c020daba1 checkpoint commit, chasing bugs
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-06-27 17:20:31 -07:00
David Hu
dc93fe21d8 Arm qemu board, arm64 equivalent to qemu/x86_64
TODO:
   * flash config can be trimmed down to minimal
   * aarch64 qemu startup options can be trimmed down
Signed-off-by: David Hu <xuehaohu@google.com>
2022-06-01 22:52:34 -07:00
Nhi Pham
01386b74fb ampere/jade: replace oldconfig to olddefconfig
Compiling Linux kernel with making olddefconfig helps set all new config
symbols to their default values without prompting.

Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
2022-05-23 08:56:34 -07:00
Nhi Pham
ccd8eaca33 ampere/jade: fix CI issues with the Go modules
This fixes the CI pipeline failure per Ron's suggestion in the PR#69.

Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
2022-05-23 08:56:34 -07:00
Dexter Fryar
2e07e640b0 Ampere README describing LinuxBoot and Plan9 cpu commands
Enabled Plan9 support in the LinuxBoot kernel config

Added systemboot as the default init for LinuxBoot and added cpud to the command set

Signed-off-by: Dexter Fryar <dexter@amperecomputing.com>
2022-05-12 09:57:06 -07:00
Ronald G. Minnich
5db5842969 solidrun/honeycomb: tweak the docs
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-05-12 09:56:35 -07:00
Ronald G. Minnich
a32b0a735e Clean up makefile, remove unused commands from boot.scr
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-05-12 09:56:35 -07:00
Ronald G. Minnich
fe7cbd093b add sunxi/nezha
This is "working", but only to the extent that it boots, works for a while, then hangs :-(

Build here, then
cp cpukernel ~/oreboot/src/mainboard/sunxi/nezha/
cp sun20i-d1-nezha.dtb ~/oreboot/src/mainboard/sunxi/nezha/
cd ~/oreboot/src/mainboard/sunxi/nezha/

PAYLOAD_B=cpukernel PAYLOAD_C=sun20i-d1-nezha.dtb make run

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-04-15 16:51:27 -07:00
Ronald G. Minnich
0e4e3bed2c Enable mandatory file locking
Required for go build in the age of modules.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-04-15 15:18:32 -07:00
Daniel Maslowski
eb6b76695e qemu/x86_64: fix building, add EFI variants
Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-04-01 15:07:11 -07:00
Daniel Maslowski
b4013e72b4 Add u-root and cpu as git submodules
Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-04-01 15:06:31 -07:00
Ronald G. Minnich
3aa01640b8 pcengines/apu2: run u-root command directly
The makefile now builds the u-root command when
make fetch
is invoked.

It runs the u-root command it builds, rather than
run u-root.go

Further, now that a set of bugs are fixed in cpud, we can now fire up
a console shell, and include lots of commands, which makes life a
LOT easier.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-04-01 15:06:17 -07:00
Daniel Maslowski
c2d48ee0b9 boards/x3550m5: remove board; there were only empty files
Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-04-01 15:05:22 -07:00
Nhi Pham
c96c441b8f mainboards/ampere/jade: Workaround Linuxboot for Ubuntu 20.04
This supports adding the DT node "linux,uefi-secure-boot" into the EFI
Stub for kexecing Ubuntu 20.04+. Otherwise, the Ubuntu will make the
kernel crash.

Signed-off-by: Tam Chi Nguyen <tamng@amperecomputing.com>
Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
2022-03-17 08:48:22 -07:00
Ryan O'Leary
5aacc85244 Remove circleci
We are replacing it with github actions.

Signed-off-by: Ryan O'Leary <ryanoleary@google.com>
2022-01-12 19:51:15 +01:00
Daniel Maslowski
3900b44a8e mb/walmart/robot: fix mkimage type
It's just kernel, not flashkernel.

Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-01-12 10:46:27 -08:00
Daniel Maslowski
a6a31b3c45 CI: omit beaglev for now due to upstream sources gone
Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-01-12 10:46:27 -08:00
Daniel Maslowski
7df0afad12 seeed/beaglev/Makefile: leave FIXME for lost branch from starfive
Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-01-12 10:46:27 -08:00
Daniel Maslowski
2126e7d29b hpe/dl360gen10/Makefile: leave FIXME for broken target 'injectkeys'
Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-01-12 10:46:27 -08:00
Daniel Maslowski
30f3edbe51 Switch to using https:// instead of git:// for cloning from GitHub
GitHub says:
git clone git://github.com/linux-sunxi/linux-sunxi.git -b sunxi-next --depth=1 linux
Cloning into 'linux'...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/
for more information.

Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-01-12 10:46:27 -08:00
Daniel Maslowski
342aa135d2 CI: install gcc-riscv64-linux-gnu among dependencies
Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-01-12 10:46:27 -08:00
Daniel Maslowski
5c5fe4f7f9 CI: touch SSH pub key files to make build pass
Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-01-12 10:46:27 -08:00
Daniel Maslowski
e912c404f7 CI: Update to go1.17.6 using actions/setup-go
Signed-off-by: Daniel Maslowski <info@orangecms.org>
2022-01-12 10:46:27 -08:00
Ryan O'Leary
fad7ffdfa7 Update to go1.17.5
This is now required by u-root.

Signed-off-by: Ryan O'Leary <ryanoleary@google.com>
2022-01-12 10:46:27 -08:00
Ronald G. Minnich
9dfbdfc584 aeeon/i11: new makefile and config files
These config files are for
5.15.0 : cpuflash.config
5.4.65 : cpuflash-5.4.65.config

They start a cpu daemon on boot.
The cpu daemon in turns starts a dhclient and a shell.
You can type commands.

They use pciserial for earlyprintk beacause their serial
hardware does not work in any way I can find.

5.4.65 can't run the on-board ethernet, so I have to use
a usb serial when I boot 5.4.65.

They have a simple standard command line. You can override
it via grub or kexec, but if you don't, looks like this
for both of them:
CONFIG_CMDLINE="console=tty0 earlyprintk=pciserial,force,1:0.0,115200"

While each kernel can kexec itself, they can not kexec the other.
5.15.0 kexec'ing 5.4.65: brick
5.4.65 kexec'ing 5.15.0: boots, but no working ethernet

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-01-11 15:46:52 -08:00
Ronald G. Minnich
763ba0311a aeeon/i11: Add the pci serial to the command line
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-01-11 15:46:52 -08:00
Ronald G. Minnich
29c2559242 Add the config for 5.4.65
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2022-01-11 15:46:52 -08:00