Skip to content

Commit

Permalink
pxe: README.md: change u-boot section
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxuan8282 authored Oct 24, 2018
1 parent 60686d2 commit bd64cef
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pxe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit bd64cef

Please sign in to comment.