mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-21 07:42:25 +00:00
pruning broken board
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
This commit is contained in:
parent
e49b38ec1f
commit
a9901247ae
11
mainboards/walmart/robot/.gitignore
vendored
11
mainboards/walmart/robot/.gitignore
vendored
@ -1,11 +0,0 @@
|
||||
BAK.TAR
|
||||
*~
|
||||
SFS/
|
||||
bak/
|
||||
build-arm-sfs.sh
|
||||
linux/
|
||||
netbooturoot.cpio
|
||||
netbooturoot.sfs
|
||||
webboot
|
||||
wifi
|
||||
|
@ -1,123 +0,0 @@
|
||||
MAJOR ?= 5
|
||||
STABLE = $(MAJOR).10
|
||||
CONFIG ?= $(MAJOR).10.0
|
||||
default: netbooturoot.sfs
|
||||
|
||||
cp:netbooturoot.sfs
|
||||
sudo mount /dev/sdb1 /mnt
|
||||
sudo cp netbooturoot.sfs /mnt/
|
||||
sudo umount /mnt
|
||||
|
||||
build:
|
||||
echo fetch, uroot, flashkernel, or image.bin
|
||||
|
||||
image.bin: flashkernel coreboot.bin
|
||||
cp coreboot.bin image.bin
|
||||
chmod +w image.bin
|
||||
cbfstool image.bin print
|
||||
cbfstool image.bin remove -n img/nerf
|
||||
cbfstool image.bin remove -n genroms/pxe.rom
|
||||
cbfstool image.bin add-payload -n img/nerf -f flashkernel
|
||||
cbfstool image.bin print
|
||||
|
||||
uCore: netbooturoo.cpio
|
||||
mkimage -A arm -n 'u-root for Allwinner A10' -d netbooturoot.cpio -T ramdisk uCore
|
||||
|
||||
qemu: uCore flashkernel
|
||||
qemu-system-arm -kernel flashkernel -machine cubieboard -serial stdio -initrd uCore -append 'console=ttyS0 earlyprintk=ttyS0,115200,keep'
|
||||
echo NO
|
||||
exit 0
|
||||
qemu-system-arm -kernel uImage -machine cubieboard -serial stdio -initrd initramfs.linux_arm.cpio
|
||||
echo NO
|
||||
exit 0
|
||||
sudo /usr/bin/qemu-system-x86_64 -kernel flashkernel \
|
||||
-cpu max \
|
||||
-s \
|
||||
-m 1024m \
|
||||
-machine q35 \
|
||||
-object rng-random,filename=/dev/urandom,id=rng0 \
|
||||
-device virtio-rng-pci,rng=rng0 \
|
||||
-device e1000,netdev=n1 \
|
||||
-netdev user,id=n1,hostfwd=tcp:127.0.0.1:23-:2222,net=192.168.1.0/24,host=192.168.1.1 \
|
||||
-serial stdio \
|
||||
-append earlyprintk=ttyS0,115200\ console=ttyS0 \
|
||||
-monitor /dev/null \
|
||||
|
||||
|
||||
# add the following line to qemu if you want to snoop packets.
|
||||
-object filter-dump,id=f1,netdev=n1,file=/tmp/vm0.pcap \
|
||||
|
||||
|
||||
netbootkernel: netbooturoot.cpio bzImage
|
||||
cp linux/arch/arm/boot/bzImage kernel
|
||||
|
||||
readrom:
|
||||
sudo flashrom -p internal -r coreboot.bin
|
||||
|
||||
writerom: image.bin
|
||||
sudo flashrom -p internal -w image.bin
|
||||
|
||||
netbooturoot.sfs: netbooturoot.cpio
|
||||
sudo rm -rf SFS
|
||||
mkdir -p SFS
|
||||
(cd SFS && sudo cpio -iv < ../$<)
|
||||
rm -f $@
|
||||
sudo mksquashfs SFS $@ -comp xz
|
||||
|
||||
netbooturoot.cpio: Makefile
|
||||
GOARCH=arm go build -o wifi github.com/u-root/webboot/cmds/wifi
|
||||
GOARCH=arm go build -o webboot github.com/u-root/webboot/cmds/webboot
|
||||
GOARCH=arm u-root -build=bb \
|
||||
-o $@ \
|
||||
-files ~/.ssh/cpu_rsa.pub:key.pub \
|
||||
-files ~/.ssh/cpu_rsa:id_rsa \
|
||||
-files ~/.ssh/authorized_keys:authorized_keys \
|
||||
-files ~/arm/etc:etc \
|
||||
-files ~/arm/bin:bin \
|
||||
-files ~/arm/sbin:sbin \
|
||||
-files ~/arm/usr:usr \
|
||||
-files bak/drv/8188fu.ko.lzma:8188fu.ko.lzma \
|
||||
-files boot:boot \
|
||||
-files bootSCREEN \
|
||||
-files wifi \
|
||||
-files webboot \
|
||||
all \
|
||||
github.com/u-root/cpu/cmds/cpud
|
||||
|
||||
# for later:
|
||||
#mkdir /tmp/r
|
||||
# mkdir /tmp/m
|
||||
# mount -t vfat /dev/mmcblk0p1 /tmp/m
|
||||
# mount -t squashfs /tmp/m/u-root-victure.sfs /tmp/r
|
||||
|
||||
uroot:
|
||||
GOARCH=arm u-root -build=bb \
|
||||
-files ~/.ssh/cpu_rsa.pub:key.pub \
|
||||
all \
|
||||
github.com/u-root/cpu/cmds/cpu
|
||||
cp /tmp/initramfs.linux_arm.cpio cpu.cpio
|
||||
|
||||
flashkernel: Makefile
|
||||
cp config-$(CONFIG) linux/.config
|
||||
(cd linux && ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make oldconfig && ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make -j32)
|
||||
mkimage -C none -A arm -n 'walmart robot' -d linux/arch/arm/boot/zImage -T kernel -a 0xc1000000 -e 0xc1000000 flashkernel
|
||||
cp linux/arch/arm/boot/zImage kernel
|
||||
|
||||
fetch: getkernel geturoot getfiano getrom
|
||||
|
||||
getkernel:
|
||||
rm -rf linux
|
||||
wget -O kernel.xz https://cdn.kernel.org/pub/linux/kernel/v$(MAJOR).x/linux-$(STABLE).tar.xz
|
||||
xzcat kernel.xz | tar x
|
||||
mv linux-$(STABLE) linux
|
||||
|
||||
getrom:
|
||||
echo you create the kernel
|
||||
echo on the APU2: flashrom -r coreboot.bin -p internal
|
||||
echo copy that file here and for safety:
|
||||
echo chmod a-w coreboot.bin
|
||||
geturoot:
|
||||
go get -u github.com/u-root/u-root
|
||||
getfiano:
|
||||
go get -u github.com/linuxboot/fiano/cmds/utk
|
||||
go install github.com/linuxboot/fiano/cmds/utk
|
@ -1,75 +0,0 @@
|
||||
# u root
|
||||
echo screen fucks up the boot args, do this first step in minicom.
|
||||
# setenv bootargs 'console=ttySGK0,115200 mem=36M rootfstype=squashfs root=/dev/mtdblock2 init=linuxrc mtdparts=gk_flash:320K(U),1664K(K),1152K(R),384K(C),-(A) single'
|
||||
# fatload mmc 0 0xc1000000 uimage-goke-g1702s-9p
|
||||
# bootm
|
||||
cat >/dev/null << EOF
|
||||
mount /dev
|
||||
mount /sys
|
||||
mount /tmp
|
||||
mount /proc
|
||||
mdev -s
|
||||
mkdir /tmp/r
|
||||
mkdir /tmp/m
|
||||
mount -t vfat /dev/mmcblk0p1 /tmp/m
|
||||
mount -t squashfs /tmp/m/netbooturoot.sfs /tmp/r
|
||||
EOF
|
||||
|
||||
# Now the script
|
||||
# just run /tmp/r/boot
|
||||
echo EXIT and run SCREEN
|
||||
exit 0
|
||||
|
||||
/tmp/r/wifi
|
||||
mount -o bind /dev /tmp/r/dev
|
||||
mount -o bind /sys /tmp/r/sys
|
||||
mount -o bind /proc /tmp/r/proc
|
||||
/tmp/r/bbin/chroot /tmp/r/ /init
|
||||
cpud -d -init&
|
||||
|
||||
###
|
||||
|
||||
HERE
|
||||
modprobe /bak/drv/gkptz-2823.ko.lzma
|
||||
insmod !$
|
||||
insmod /bak/drv/gkptz-2823.ko.lzma
|
||||
insmod /bak/drv/8188fu.ko.lzma
|
||||
insmod /bak/drv/GobiNet.ko.lzma
|
||||
ifconfig -a
|
||||
history
|
||||
# the standard system
|
||||
setenv bootargs 'console=ttySGK0,115200 mem=36M rootfstype=squashfs root=/dev/mtdblock2 init=linuxrc mtdparts=gk_flash:320K(U),1664K(K),1152K(R),384K(C),-(A) single'
|
||||
sf probe;sf read 0xc1000000 0x50000 0x1A0000;bootm 0xc1000000;
|
||||
|
||||
GK7102S # printenv
|
||||
[PROCESS_SEPARATORS] printenv
|
||||
arm_freq=0x00112032
|
||||
baudrate=115200
|
||||
bootargs=console=ttySGK0,115200 mem=36M rootfstype=squashfs root=/dev/mtdblock2 init=linuxrc mtdparts=gk_flash:320K(U),1664K(K),1152K(R),384K(C),-(A)
|
||||
bootcmd=sf probe;sf read 0xc1000000 0x50000 0x1A0000;bootm 0xc1000000;
|
||||
bootdelay=1
|
||||
bootfile=zImage
|
||||
bsbsize=1M
|
||||
consoledev=ttySGK0
|
||||
ethact=gk7101
|
||||
ethaddr=3C:97:0E:22:E1:14
|
||||
gatewayip=11.1.4.1
|
||||
hostname="gk7102"
|
||||
ipaddr=192.168.11.34
|
||||
loadaddr=0xC1000000
|
||||
mem=36M
|
||||
netdev=eth0
|
||||
netmask=255.255.255.0
|
||||
nfsserver=11.1.4.19
|
||||
phytype=0
|
||||
rootfstype=ubi.mtd=3 rootfstype=ubifs root=ubi0:rootfs
|
||||
rootpath=/opt/work
|
||||
serverip=192.168.11.100
|
||||
sfboot=setenv bootargs console=${consoledev},${baudrate} noinitrd mem=${mem} rw ${rootfstype} init=linuxrc ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev} mac=${ethaddr} phytype=${phytype};sf probe 0 0;sf read ${loadaddr} ${sfkernem
|
||||
sfkernel=0x50000
|
||||
stderr=serial
|
||||
stdin=serial
|
||||
stdout=serial
|
||||
tftpboot=setenv bootargs root=/dev/nfs nfsroot=${nfsserver}:${rootpath},proto=tcp,nfsvers=3,nolock ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev} mac=${ethaddr} phytype=${phytype} console=${consoledev},${baudrate} mem=${mem};tftpbm
|
||||
|
||||
Environment size: 1270/65532 bytes
|
@ -1,16 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
insmod /tmp/r/8188fu.ko.lzma
|
||||
mkdir /tmp/var
|
||||
# PATH="/bak/ap:$PATH" /bak/ap/start-ap.sh gokewifi
|
||||
ifconfig -a
|
||||
TERM=screen
|
||||
/tmp/r/bbin/stty rows 24 cols 80
|
||||
PATH=$PATH:/tmp/r/bbin:/tmp/r
|
||||
/tmp/r/wifi
|
||||
mount -o bind /dev /tmp/r/dev
|
||||
mount -o bind /sys /tmp/r/sys
|
||||
mount -o bind /proc /tmp/r/proc
|
||||
/tmp/r/bbin/chroot /tmp/r/ /init
|
||||
cpud -d -init&
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user