Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duo-buildroot-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
duo-buildroot-sdk
Commits
d606d31f
Commit
d606d31f
authored
Mar 11, 2023
by
sam.xiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support booting from SD card
Change-Id: Ie67fafaeff7696e73bce5cb6afec27f50a4a2fea
parent
7186ede6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
u-boot-2021.10/include/configs/cv180x-asic.h
u-boot-2021.10/include/configs/cv180x-asic.h
+10
-3
No files found.
u-boot-2021.10/include/configs/cv180x-asic.h
View file @
d606d31f
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
/*#define CONFIG_MENU_SHOW*/
/*#define CONFIG_MENU_SHOW*/
/* Download related definitions */
/* Download related definitions */
#define UPGRADE_SRAM_ADDR 0x0e000030
#define UBOOT_PID_SRAM_ADDR 0x0e000030
#define UBOOT_PID_SRAM_ADDR 0x0e000030
#define UPDATE_ADDR CVIMMAP_ION_ADDR
#define UPDATE_ADDR CVIMMAP_ION_ADDR
#define HEADER_ADDR UPDATE_ADDR
#define HEADER_ADDR UPDATE_ADDR
...
@@ -207,6 +208,8 @@
...
@@ -207,6 +208,8 @@
#else
#else
#define ROOTARGS "ubi.mtd=ROOTFS ubi.block=0,0"
#define ROOTARGS "ubi.mtd=ROOTFS ubi.block=0,0"
#endif
/* CONFIG_SKIP_RAMDISK */
#endif
/* CONFIG_SKIP_RAMDISK */
#elif defined(CONFIG_SD_BOOT)
#define ROOTARGS "root=" ROOTFS_DEV " rootwait rw"
#else
#else
#define ROOTARGS "rootfstype=squashfs rootwait ro root=" ROOTFS_DEV
#define ROOTARGS "rootfstype=squashfs rootwait ro root=" ROOTFS_DEV
#endif
#endif
...
@@ -281,13 +284,17 @@
...
@@ -281,13 +284,17 @@
#define SD_BOOTM_COMMAND \
#define SD_BOOTM_COMMAND \
SET_BOOTARGS \
SET_BOOTARGS \
"echo Boot from SD
with ramboot.itb
;" \
"echo Boot from SD
...
;" \
"mmc dev
1 && fatload mmc 1 ${uImage_addr} ramboot.itb
; " \
"mmc dev
0 && fatload mmc 0 ${uImage_addr} boot.sd
; " \
"if test $? -eq 0; then " \
"if test $? -eq 0; then " \
UBOOT_VBOOT_BOOTM_COMMAND \
UBOOT_VBOOT_BOOTM_COMMAND \
"fi;"
"fi;"
#ifndef CONFIG_SD_BOOT
#define CONFIG_BOOTCOMMAND SHOWLOGOCMD "cvi_update || run norboot || run nandboot ||run emmcboot"
#define CONFIG_BOOTCOMMAND SHOWLOGOCMD "cvi_update || run norboot || run nandboot ||run emmcboot"
#else
#define CONFIG_BOOTCOMMAND SHOWLOGOCMD "run sdboot"
#endif
#if defined(CONFIG_NAND_SUPPORT)
#if defined(CONFIG_NAND_SUPPORT)
/* For spi nand boot, need to reset DMA and its setting before exiting uboot */
/* For spi nand boot, need to reset DMA and its setting before exiting uboot */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment