Skip to content

Commit 78a6d0c

Browse files
L4T: Switch: switch-bootloader: update boot.scr and readme_config for upfs, and ipv6 enable
1 parent 976c492 commit 78a6d0c

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

projects/L4T/devices/Switch/packages/switch-bootloader/assets/README_CONFIG.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ Below you can find all supported keys and their defaults.
4242
3: Enable serial logging on UART-C [Left Joycon Rail]
4343
4: Enable serial logging on USB
4444

45-
[fbconsole=1]
46-
0: Enable kernel logging on built-in display.
45+
[fbconsole=9]
46+
0: Enable kernel logging on built-in display, and disable splash screen
4747
1: Enable kernel logging on DP/HDMI/VGA.
4848
9: Or removed, disables kernel logging on any display.
4949

@@ -80,6 +80,15 @@ Below you can find all supported keys and their defaults.
8080
1: Set GPU clock hard limit to 1075 MHz. T210B01 only.
8181
Helps when `gpu_dvfsc` is enabled and GPU can't handle the higher frequencies
8282
in such low voltages.
83+
84+
[enable_ipv6=0]
85+
0: IPv6 Disabled (default)
86+
1: IPv6 Enabled
87+
88+
[enable_upfs = 0]
89+
0: upfs storage is disabled
90+
1: upfs storage is enabled(experimental): Keep FS permissions in ext4 partition image(Easier to clean)
91+
2: upfsps storage is enabled(experimental) Keep FS permission in storage dir in hidden files
8392
================================================================================
8493

8594

projects/L4T/devices/Switch/packages/switch-bootloader/assets/boot.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ test -n ${performance_mode} || setenv performance_mode 0
1919
test -n ${dock_freq_switch_enabled} || setenv dock_freq_switch_enabled 0
2020
test -n ${touch_skip_tuning} || setenv touch_skip_tuning 0
2121
test -n ${wifi_disable_vht80} || setenv wifi_disable_vht80 0
22+
test -n ${enable_ipv6} || setenv enable_ipv6 0
23+
test -n ${enable_upfs} || setenv enable_upfs 0
2224

2325
# Built-in IMU.
2426
test -n ${acc_cal_off_x} || setenv acc_cal_off_x 0x0
@@ -358,9 +360,22 @@ fi
358360
# Set default wifi mac. initramfs will/can change it.
359361
if test -n ${device_wifi_mac}; then fdt set /chosen nvidia,wifi-mac ${device_wifi_mac}; fi
360362

363+
if test ${enable_ipv6} = 0; then
364+
setenv bootargs_extra ${bootargs_extra} ipv6.disable=1
365+
fi
366+
367+
if test ${enable_upfs} = 1; then
368+
setenv bootargs_extra ${bootargs_extra} upfs-storage
369+
elif test ${enable_upfs} = 2; then
370+
setenv bootargs_extra ${bootargs_extra} upfsps-storage
371+
fi
372+
373+
if test ${fbconsole} = 0; then
374+
setenv bootargs_extra ${bootargs_extra} fbcon=rotate:3 nosplash
375+
fi
361376

362377
# Set kernel cmdline.
363-
setenv bootargs ${bootargs_extra} "boot=/dev/mmcblk0p1 BOOT_IMAGE=@DISTRO_PATH@/KERNEL SYSTEM_IMAGE=@DISTRO_PATH@/SYSTEM nofsck fat32-boot \
378+
setenv bootargs ${bootargs_extra} "boot=/dev/mmcblk0p1 BOOT_IMAGE=@DISTRO_PATH@/KERNEL SYSTEM_IMAGE=@DISTRO_PATH@/SYSTEM nofsck device-has-user fat32-boot \
364379
dock_freq_switch_enabled=${dock_freq_switch_enabled} performance_mode=${performance_mode} \
365380
firmware_class.path=/usr/lib/firmware access=m2 \
366381
pmc_r2p.enabled=1 pmc_r2p.action=${r2p_action} \

projects/L4T/devices/Switch/packages/switch-bootloader/package.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
PKG_NAME="switch-bootloader"
2-
PKG_VERSION="2.8"
2+
PKG_VERSION="3.0"
33
PKG_ARCH="any"
4-
PKG_DEPENDS_TARGET="switch-u-boot:host switch-u-boot:target switch-atf:target"
4+
PKG_DEPENDS_INIT="upFS:init"
5+
PKG_DEPENDS_TARGET="switch-u-boot:host switch-u-boot:target switch-atf:target upFS:target bindfs:target"
56
PKG_TOOLCHAIN="manual"
67

78
make_target() {

0 commit comments

Comments
 (0)