From bd64cef15733faee58435edfa9da3bab0eb5e217 Mon Sep 17 00:00:00 2001 From: yangxuan8282 Date: Wed, 24 Oct 2018 12:24:24 +0800 Subject: [PATCH] pxe: README.md: change u-boot section --- pxe/README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pxe/README.md b/pxe/README.md index e1cd53c..293d9a9 100644 --- a/pxe/README.md +++ b/pxe/README.md @@ -20,21 +20,22 @@ or Client: -prepare a usb disk, create as fat +prepare a usb disk, format as fat -copy the `aml_autoscript` and `s905_autoscript` in `usb` directory into it +cd to `usb` dirctory, edit the `s905_autoscript.cmd` according to your network -then install u-boot ( also in `usb` directory ) with `dd`: - -( replace TARGET_DEV with your usb devices ) +then generate autoscript with(need install uboot-tools): ``` -sudo dd if=usb/u-boot.bin of=TARGET_DEV bs=1 count=442 conv=fsync && -sudo dd if=usb/u-boot.bin of=TARGET_DEV bs=512 skip=1 seek=1 conv=fsync +mkimage -C none -A arm -T script -d s905_autoscript.cmd s905_autoscript ``` -power on the box +copy the `aml_autoscript` and `s905_autoscript` in `usb` directory into usb storage + +power on the box, wait some minutes it should boot into the system + +some notes: -the u-boot in this repos is mainline 2018.07, use khadas-vim_defconfig +we actually use u-boot on emmc, that should be u-boot 2015 the nfs server Dockerfile is from [tangjiujun/docker-nfs-server](https://github.com/tangjiujun/docker-nfs-server)