Skip to content

Commit b7ff4ce

Browse files
committed
build dev and prd boot scripts
1 parent 60fc6c4 commit b7ff4ce

4 files changed

Lines changed: 32 additions & 1 deletion

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# add console=tty0 to output kernel messages on LCD screen
2+
3+
setenv bootargs console=ttyS2,115200n8 debug earlyprintk ubi.mtd=rootfs root=/dev/ram rw
4+
5+
6+
#mw.b send data to ttyS1
7+
8+
# fill LED PB to 50%
9+
mw.b 0x01D0C000 0x41 #A
10+
mw.b 0x01D0C000 0x30 #0
11+
mw.b 0x01D0C000 0x33 #3
12+
mw.b 0x01D0C000 0x32 #2
13+
mw.b 0x01D0C000 0x67 #g
14+
15+
fatload usb 0:1 0xC2000000 uImage.presonus-cs18ai
16+
17+
# exit update status pattern
18+
mw.b 0x01D0C000 0x41 #A
19+
mw.b 0x01D0C000 0x30 #0
20+
mw.b 0x01D0C000 0x36 #6
21+
mw.b 0x01D0C000 0x36 #6
22+
mw.b 0x01D0C000 0x67 #g
23+
24+
bootm 0xC2000000

board/opencs18/v1/gen-bootscript.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
SRC_SCRIPT=${BR2_EXTERNAL_OPENCS18_PATH}/board/opencs18/v1/usb-bootscript.raw
44
DST_IMG=${BINARIES_DIR}/recovery.scr
55

6+
SRC_SCRIPT=${1:-$SRC_SCRIPT}
7+
DST_IMG=${2:-$DST_IMG}
8+
69
#env
710

811
echo Generating $DST_IMG

board/opencs18/v1/post-build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#!/bin/bash
22
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
33

4+
# build production startup script
45
${DIR}/gen-bootscript.sh
56

7+
# build dev startup script
8+
${DIR}/gen-bootscript.sh ${BR2_EXTERNAL_OPENCS18_PATH}/board/opencs18/v1/dev-usb-bootscript.raw ${BINARIES_DIR}/dev-recovery.scr
9+
610
#grep -q "GADGET_SERIAL" "${TARGET_DIR}/etc/inittab" \
711
# || echo '/dev/ttyGS0::respawn:/sbin/getty -L /dev/ttyGS0 0 vt100 # GADGET_SERIAL' >> "${TARGET_DIR}/etc/inittab"
812
#grep -q "ubi0:persist" "${TARGET_DIR}/etc/fstab" \

board/opencs18/v1/usb-bootscript.raw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# add console=tty0 to output kernel messages on LCD screen
22

3-
setenv bootargs console=ttyS2,115200n8 debug earlyprintk ubi.mtd=rootfs root=/dev/ram rw
3+
setenv bootargs console=ttyS2,115200n8 quiet ubi.mtd=rootfs root=/dev/ram rw
44

55

66
#mw.b send data to ttyS1

0 commit comments

Comments
 (0)