File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 33SRC_SCRIPT=${BR2_EXTERNAL_OPENCS18_PATH} /board/opencs18/v1/usb-bootscript.raw
44DST_IMG=${BINARIES_DIR} /recovery.scr
55
6+ SRC_SCRIPT=${1:- $SRC_SCRIPT }
7+ DST_IMG=${2:- $DST_IMG }
8+
69# env
710
811echo Generating $DST_IMG
Original file line number Diff line number Diff line change 11#! /bin/bash
22DIR=" $( 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" \
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments