Commit Graph

1004 Commits

Author SHA1 Message Date
Ronald G. Minnich
0f38bcb73c Take bootcmds out. The fetch target will touch it.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
61031c06e5 intel/hw: Create an empty bootcmds file
You can edit this file to add commands in shell format,
i.e. commands with arguments. Quoting is supported.

e.g. bootcmds might contain:

fitboot -c 'root=/dev/ram0 rw console=ttyS0,115200 earlyprintk=ttyS0,115200' afile

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
33b6eaf20c intel/hw: Add support for cpu
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
93d38a231b intel/hw:Tweak cpuflash.config
This is copied from flash.config with enough extras to enable cpu

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
b81b11f3b9 intel/hw: tweaks for flash.config
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
d1b34aed2b Changes for building cpu images for flash
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
96bb52ea4e Add a cpuflash.config -- config for cpu command in flash
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
d84e5aa27c intel/hw: tweaks for the flash config
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
a402d312fb intel/hw: Add the echo command
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
8908e4d851 intel/hw: add a Go script to cleanly insert the initramfs
The use of dd is a bit dangerous, there's not enough
integrity checking.

insert.go is a simple script which does far better checking.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
b5368856cf intel/hw: add etc directory to .gitignore
Users can add files to it without accidentally commiting
them.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
f92c091289 Add an etc directory
This allows users to add extra files without requiring
them to change the Makefile, while at the same time
allowing them to not add anything.

etc is also in .gitignore so that people don't accidentally
add files that are not public.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
01521515b3 Move the bootcmds file into the initramfs
uinit will now look for bootcmds
you have to supply your own

make will fail if not bootcmds file is present

bootcmds is in .gitignore;
it won't get accidentally commited.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
682f696456 intel/hw: add cp command to Makefile
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
2fa5d1f9a6 intel/hw: add more options to the kernel
add squashfs, loop, mtd.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
ad37cd60af uinit: make it parse normal command lines with shlex
So your bootcmds can now look like this:

fitboot -c 'root=/dev/ram0 rw console=ttyS0,115200 option=blah aption=foo earlyprintk=ttyS0,115200' /mnt/boot/chopper.bz.uImage

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Vanshidhar Konda
404cbb1143 ampere/jade: Add additional drivers for Mt. Jade
Enable IGB for Intel I210 NIC.

Enable MPT3SAS driver for SAS controller.

Enable XFS and EXFAT for supporting boot from more types
of partitions.

Signed-off-by: Vanshidhar Konda <vkonda@amperecomputing.com>
2021-09-14 13:14:59 -07:00
Ryan O'Leary
2a3a69f8c3 Enable CONFIG_POSIX_TIMERS
This adds a fairly standard set of syscalls.

Signed-off-by: Ryan O'Leary <ryanoleary@google.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
abb33512a2 A few more tweaks to uinit
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
bbbea42154 Update hw target to show example uinit
This is an example of providing uinit for a board.
The uinit in this case mounts a drive, looks inside
for
/mnt/boot/bootcmds
which is a file of lines, each line being 1 or more args,
args separated by : (so we don't have to go crazy
on the parsing).

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
46c80c03de Add networking
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
88b79a0229 update cpu.config
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G. Minnich
8c06055ac7 Allow access to /dev/mem from user mode on pcengines/apu2 and intel/hw
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Ronald G Minnich
30011b25e7 trying to get the cubie back from years ago
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:59 -07:00
Jean-Marie Verdun
ed17e8b17e Remove "garbage" debug command from geturoot
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:59 -07:00
Jean-Marie Verdun
252e23b503 Add ssh key injection support into linuxboot
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:59 -07:00
Ronald G Minnich
6f230ebc79 upxtreme: adjust utk usage
we only want the dxeremove.bin image, not hap.bin

Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
7b21893a0a Add LEGACY ptys; Go runtime still seems to need them.
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
c61b07b61d aeeon/upxtreme: add USB support as well as EFI variables
EFI bootmgr now works, as does USB mass store.

Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
9e2ee10ad4 aeeon/upxtreme: Add vga console
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
1ee6cf580f cpukernel for up xtreme
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Gabriel Huang
54d5871d55 add disk_unlock, acpi, dmi tools into u-root
Signed-off-by: Gabriel Huang <gabriel.kh.huang@fii-foxconn.com>
2021-09-14 13:14:18 -07:00
Gabriel Huang
0fe95de7b5 Update Makefile for making qemu working with flashkernel
Signed-off-by: Gabriel Huang <gabriel.kh.huang@fii-foxconn.com>
2021-09-14 13:14:18 -07:00
Gabriel Huang
98249637fe Enable IOMMU to solve Marvell SATA compatibility issue
Signed-off-by: Gabriel Huang <gabriel.kh.huang@fii-foxconn.com>
2021-09-14 13:14:18 -07:00
Gabriel Huang
ddf3a161d0 Enable SATA AHCI support
Signed-off-by: Gabriel Huang <gabriel.kh.huang@fii-foxconn.com>
2021-09-14 13:14:18 -07:00
Gabriel Huang
0cee99ee41 kexec to secondary kernel require CONFIG_HOTPLUG_CPU=y
Signed-off-by: Gabriel Huang <gabriel.kh.huang@fii-foxconn.com>
2021-09-14 13:14:18 -07:00
Gabriel Huang
83f8acf18f change Filesystem settings to boot to CentOS 8 provided
Signed-off-by: Gabriel Huang <gabriel.kh.huang@fii-foxconn.com>
2021-09-14 13:14:18 -07:00
Gabriel Huang
f3e04fffdf enable I2C support and IPMI feature for IPMI support
Signed-off-by: Gabriel Huang <gabriel.kh.huang@fii-foxconn.com>
2021-09-14 13:14:18 -07:00
Nill Ge
ecf1934cfa Add ByteDance System G220A Mainboard
Add g220a's Makefile and config.

Signed-off-by: Nill Ge <geshijian@bytedance.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
76564ca2d2 intel/generic: enable all cgroups and ip=dhcp for cpukernel
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
bdf2b079e1 Add cpud support for generic
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
031d296bae Modify copyright to HPE
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
00cd5a97c6 Add a cpu kernel config for hw
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
756467efcc opentitanpilot/dresden
can't remove bootguard or genericmemorytest?

remote Hsti. I wonder what that is?

Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
5581ea542e remove AmdCpm code
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
3946b9989c IOMMU DXE removed
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
4647f96750 add io command
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
b90fd5c48c removelegacyinterrupt
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
666b6c5de5 can not remove CapsuleRuntimeDxe yet
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
a9d5294b07 17 more useless DXEs
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00