Commit Graph

401 Commits

Author SHA1 Message Date
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
Ronald G Minnich
112b64bcdd remove .*PlatformRas.*
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
9a0a0d2869 bye bye HTTP and useless CSM crap
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
efe65719f2 bye bye smbios
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
b9cf909be8 bye bye Tpm
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
360dc579b0 remove Config DXE
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
cb843ab28b remove Debug DXE
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
21c111ca4f This begins the slash and burn stage to try and find what's essentialy
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
6d903f6106 More stuff we don't seem to need
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
5d3a71d211 remove int13
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
353e5b2f88 config file mods for AMD Rome CRB
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
1a0cdd04df Add in all the DXEs we might remove
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
6e8e818db0 Tcg not needed.
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
7b859f00cc Remove AMITSE
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
c090f09dd4 remove Dxe's we don't need
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
47c4359980 HW board.
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
924ca68d70 working flashkernel, working cpukernel
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Ronald G Minnich
ef3a5e6d5e Tweaks for atomic pi makefile
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
daf5057cc8 Enable SATA
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
09ec61371c Add dhclient
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
4cf6a4ef34 Add RSDP command
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
4cceb2a7ce Add ISO9660 fs
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
3157d62d3f Add ext4 support
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
fc272bb32d Add the PCI command
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
2e434531f9 Some kernel tweak for USB support
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
e7b3a577e1 Enable USB within 5.4 kernel
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
771639ae46 Add a few commands Make Makefile more user readable
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:14:18 -07:00
Jean-Marie Verdun
85bd7121f5 Define hostname to model name
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:13:01 -07:00
vejmarie
0d5f7e34a5 Remove unnecessary DXE's (#20)
Signed-off-by: Jean-Marie Verdun <jean-marie.verdun@hpe.com>
2021-09-14 13:13:01 -07:00
Ronald G Minnich
5b223c5603 Add the apu2
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
0c0410a46e Force the built-in command line, add uroot.nohwrng
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
f3071b5758 add all -root tools to image and only use xz for initrd
Now on boot you'll have tools:

~/> dhclient eth0
1970/01/01 00:00:50 Bringing up interface eth0...
1970/01/01 00:00:51 Attempting to get DHCPv4 lease on eth0
^CException: dhclient killed by signal interrupt
[tty], line 1: dhclient eth0
~/> ip l
1: lo: <UP,LOOPBACK> mtu 65536 state UNKNOWN
    link/loopback
2: eth0: <UP,BROADCAST,MULTICAST> mtu 1500 state UP
    link/ether 0c:42:a1:54:21:16
3: eth1: <BROADCAST,MULTICAST> mtu 1500 state DOWN
    link/ether 0c:42:a1:54:21:17
4: tunl0: <0> mtu 1480 state DOWN
    link/ipip
~/>

which are handy. ls /bbin for more.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
0a167b85a4 Ampere Jade Mountain support
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
2021-09-14 13:13:01 -07:00
vejmarie
dacac18797 hpe - initial setup (#18)
* Create initial repo for hpe motherboard support

Signed-off-by: Jean-marie Verdun <vejmarie@Jean-maries-MacBook-Air.local>

* Add initial README

Signed-off-by: Jean-marie Verdun <vejmarie@Jean-maries-MacBook-Air.local>

Co-authored-by: Jean-marie Verdun <vejmarie@Jean-maries-MacBook-Air.local>
2021-09-14 13:13:01 -07:00
Ryan O'Leary
c5a5651a13 Fix missing cpu command in build
The cpu command has moved to github.com/u-root/cpu/cmds/cpud

Signed-off-by: Ryan O'Leary <ryanoleary@google.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
5865456c19 Add ampere/jade
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
fec7f94979 Tweak minplatform build
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G Minnich
0ba617d1cf macchiattobin: add stanza for cross-build package
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
4a1cd903ae latest changes from F1F0
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
283151370a builds for marvell macchiatobin
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Lennon
eec29c7949 Add getmecleaner and skip tighten.bin step. (#13)
Signed-off-by: Lennon <zhongswag@gmail.com>

Co-authored-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
17b5210a0a Add repos stanzas to Makefile
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
507a8c41dd Add an me_cleaner stanza to the top-level Makefile
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
93a9f556b3 add CONFIG_DEVPORT to the atomic pi flash kernel -- it fits
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
f4afa152fc Enabled UNIX98 PTYs
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
6d29917302 arm emulation
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
61f64b83ec add st/st32mp1517c
Signed-off-by: Ronald G. Minnich <rminnich@google.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
302a358d3e checkout the working_hack branch for s2600
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
4f3c83aa87 Add tiny config file.
Signed-off-by: Lennon <zhongswag@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
04344663c7 replace cpuserver with cpud
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
0f11d06f9b remove -CONFIG_ACPI_REDUCED_HARDWARE_ONLY=y from s2600
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G Minnich
995db2468b Small updates to Atomic Pi for newer kernel
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
0d6a664b9b Initial S2600 support
We move the class keys to the top so more than one board
can use them. We use a stable kernel. We only build the
sshdkernel and cpukernel at present.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
9381890c30 fix up pxelinux config files as we now have initramfs built into the kernel
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
a91d4e6f68 Major makefile cleanup
name things better:
sshdkernel
flashkernel
cpukernel

similar naming for configs and cpio.lzma files

Hopefully these target names are less confusing.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
69896f0ef4 make those disable commands advisory
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
9006bfbe92 fix error in makefile clause for pxeserver
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
991edae2c2 Adjust for new boot world -- no grub, only linux
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
1c3226fca1 tweak makefile for new world
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
4125c3b5ee add an ssh clause to memoize usage
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
1fa7a0111a make sshd be the uinit
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
2208243fa9 Add sshd to the reflash image
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
45a8ae6841 add an http: for reflash
and reflashshow to show how bad tftp is

also add more vi config files

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
acc99e2557 tweak the demo script
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
239bcf4526 refine the biguroot target; add UTK demo
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
5f3c0e1a80 simplify pxelinux config; add new reflash target
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
fa6a551082 USB support for netboot kernel
needed so atomic pi can boot standard usb sticks.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7f8845f3ab Add disk and kexec features
This is so we can get to boot2 booting.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
79ef5cbb21 Make flash payload always pxeboot; bring back netconsole
This works. Sorry, it means we're hardwired to 192.168.0.2
but that's life.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
63849368bb clean up the makefile so it's easier to read
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
cd458ba63b Simplify the grub, de-emphasize netconsole
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
43afaad1bb api: move to source-based bds and shell dxe
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
f8bf72eaa0 rename dhcpd.conf to make it clear which net it is for
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
d9ed8c83db Add bds and shell built from source and a rule
To build an image,
make gan.bin

There is unneeded work in here which we'll remove later.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
51564996ca The netboot kernel needs CONFIG_ACPI_REDUCED_HARDWARE_ONLY=y
Once you go down the path to the light side, well, life is better
but it's a one way trip.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
d03924b405 Final set of changes to enable pxeboot
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
e894097478 minor fix to tiny config
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7dd1fad2e9 more info on the makefile
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
138564215e add ARCH_RANDOM and all the pxeboot waiting ends
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
78655ced08 a few more notes
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
8d4b62f300 trust the cpu random. Does not fix pxeboot blocks (!)
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7460420f27 api: more tweaks.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
8e30160d8f api: makefile notes and tweaks
I think our pxeboot is what we want.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
a32d4b2b9e flash kernel: add kexec and packet socket support
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
e48edc9ee8 This config lets us boot ip=dhcp
ping top the node works

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
d0914a3368 add convenience script for verifying
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
e56ee4bf1f api: add minimal bits for Go programs tested in qemu
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
cc47d58b6e api: maybe this will do it.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
d51e0fe525 add initrd support.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
11f035eb8c api: working boot with tcp stack.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7d38d4b962 api: add networking, and realtek
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
30237b293b atomic pi: go with reduced hardware mode. Now works in flash.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
149b0c9656 more removal
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
d0680dbcbb netboot config
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
27a8acfce8 refine tiny kernel I'm getting the ACPI disabled entirely dependent on kernel config. Progress!!!
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
cc16351cf1 We can now build a *working* tinykernel image.
You need to turn off lots of stuff via AMITSE before you do this.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
274149de02 make the tiny config really tiny and make a tiny.bin image with minimal dxe-ectomy
-rw-rw-r-- 1 rminnich rminnich 852016 Jan 18 05:01 arch/x86/boot/bzImage

This should let us more easily find out why acpi is not happening.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
abbb60b821 don't bring in extra programs -- it breaks cpu namespaces somehow
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7f9674d936 correct comment in grub.cfg
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
6dc889bf75 atomic pi: build in pci command; make the flash image lbur.bin
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
8871bf758a tweak build steps
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
52d6908f5d pick branch for api kernel
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
a52c8df053 add guid2english
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
1300e72e8d add the readrom and writerom scripts
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7b16589bd6 add flashrom to the packages
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
441503f795 WIP: atomic pi: remove useless tcg/tpm crap
this one might not work out but ... 700+K!!!

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
bdfc463769 atomic pi: bring in some useful binaries since we have room
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
ed8657228c add minicom
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
4f1e3e4cd0 more tweaks for class -- fix up grub.cfg for non-spi-initramfs
and make sure the bzImage is also not using SPI initramfs;
flashbzImage target is for that.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
426e1743ee add packages
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
222b13df6c tweak for class
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
54f38a40c0 for class, git clone https:// not git@
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7a44a871fb update for class. always go get -u
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
9b76164f8c remove the TimeStampDxe ... it sucks.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
6f0cf0cab8 Various fixups
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
c8cf3d831c handy program we can try to use for testing efi shell replacement
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
9c6a42f6ca add testovmf file
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
45514cf35b more tweaks, no joy
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
024e4cc8e3 Kernel fits, endless reboots.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
52aa81086b Make a kernel fit. No idea if this will ever work.
Need to take the replace_pe32 out and see if the uefi shell still comes up.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7e068d249e with this set of changes, the usb light stays lit (does not cycle)
I think this means no panic, but still no serial output.

Possible something is not setting up serial? or interrupts?

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
4ae9c44fc4 bye bye a m i
you won't be missed

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
13d724a09d working, even with Gop remove.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
92fbcea4bc Still works.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
c2389d66d1 checkpoint commit, trying to find what works.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
d041b9af62 Just enough to fit a kernel with no networking, or block devices, or ...
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
d7f30e1c96 Add up2 bds and shell to the up image. Cross fingers.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
785e233bee more hackery, all fails
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
3cb2551c14 Remove more things
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
de2e84c60d bye bye Ish!
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
4fcefd53c3 test image, xxx.bin, so we can explore dxe removal
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
ef78c1fa77 Fixups for correctly setting CONFIG_CMD* variables
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
d903d41ab3 various fixups including right kernel tree and initrd in spi
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
009849165f Further classwork
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
a6b5c0ee2a Set up atomic pi files
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
eaeafb74b1 add a top level makefile
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
9571a7dcb5 intel/generic: go get -u, remove DUMMY
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
42f3934560 Atomic PI support, kernel shrink, class setup
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7b066fa515 update intel/generic so we can get things we need no HPE
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
0a2c47e1cb more shrinkage. Let the kernel do dhcp. remove all commands
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7128ca2ad4 remove /bbin/cpu from Makefile; cpu is enough
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
035b0c7381 Remove fusermount, we no longer need it.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
0e19a68388 add netpoll for realz
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
0b7b033a86 WIP add netconsole
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
eee0fc898d WIP: WOW! no console needed, we have cpu working.
slightly under 4M

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
cf78ef8fbd WIP: untested reductions.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
0654a2fb29 USB, IP multicast, and a few other things gone
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
5022e44bb3 lighter bbin, lighter .config
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
061cd2e1e4 Trim some IP 4 bits.
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
a38a2c37b1 no more ip6
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
4e04f9a59d more trimming, especially USB
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
066fa52ba5 Move to 5.3.10 and get superior RNG setup
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
7f20b9946f more shrinkage
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
924c8ebe26 more shrink kernel
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
0f8bfdeb0a mroe removal
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
309ad9d8a6 more pruning
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00
Ronald G. Minnich
8c2878997c More pruning, still too big
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
2021-09-14 13:13:01 -07:00