rpi vs balena nvme

Created Diff never expires
127 删除
总计
删除
单词
总计
删除
要继续使用此功能,请升级到
Diffchecker logo
Diffchecker Pro
152
283 添加
总计
添加
单词
总计
添加
要继续使用此功能,请升级到
Diffchecker logo
Diffchecker Pro
308
/dev/disk5 (external, physical):
/dev/disk5 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *256.1 GB disk5
0: FDisk_partition_scheme *256.1 GB disk5
1: Windows_FAT_32 bootfs 536.9 MB disk5s1
1: Windows_FAT_32 resin-boot 83.9 MB disk5s1
2: Linux 255.5 GB disk5s2
2: Linux 671.1 MB disk5s2
3: Linux 671.1 MB disk5s3
4: Linux 21.0 MB disk5s5
5: Linux 205.5 MB disk5s6
(free space) 254.4 GB -


(base)
(base)
~ via 🅒 base
~ via 🅒 base
➜ sudo gpt -r show /dev/disk5
➜ sudo gpt -r show /dev/disk5
Password:
Password:
start size index contents
start size index contents
0 1 MBR
0 1 MBR
1 8191
1 8191
8192 1048576 1 MBR part 12
8192 163840 1 MBR part 12
1056768 499061424 2 MBR part 131
172032 1310720 2 MBR part 131
1482752 1310720 3 MBR part 131
2793472 1 Extended MBR
2793473 8191
2801664 40960 1 Extended MBR part 131
2842624 8064
2850688 401536 2 Extended MBR part 5
3252224 496865968
(base)
(base)
~ via 🅒 base took 5s
~ via 🅒 base took 5s
➜ ls -la /Volumes/bootfs
➜ ls -la /Volumes/resin-boot
total 151568
total 45756
drwx------@ 1 cm staff 0 28 Apr 17:10 .
drwx------@ 1 cm staff 0 28 Apr 17:48 .
drwxr-xr-x 5 root wheel 160 28 Apr 17:29 ..
drwxr-xr-x 5 root wheel 160 28 Apr 17:53 ..
drwx------ 1 cm staff 2048 28 Apr 17:29 .fseventsd
drwx------ 1 cm staff 512 28 Apr 17:53 .fseventsd
drwx------ 1 cm staff 2048 28 Apr 17:10 .Spotlight-V100
drwx------ 1 cm staff 512 28 Apr 17:48 .Spotlight-V100
-rwx------ 1 cm staff 32499 8 Oct 2024 bcm2710-rpi-2-b.dtb
-rwx------ 1 cm staff 24 25 Apr 13:11 balena-image
-rwx------ 1 cm staff 35326 8 Oct 2024 bcm2710-rpi-3-b-plus.dtb
-rwx------ 1 cm staff 23407 25 Apr 13:11 balenaos.fingerprint
-rwx------ 1 cm staff 34691 8 Oct 2024 bcm2710-rpi-3-b.dtb
-rwx------ 1 cm staff 78331 25 Apr 13:11 bcm2712-rpi-5-b.dtb
-rwx------ 1 cm staff 32278 8 Oct 2024 bcm2710-rpi-cm3.dtb
-rwx------ 1 cm staff 78287 25 Apr 13:11 bcm2712-rpi-500.dtb
-rwx------ 1 cm staff 33668 8 Oct 2024 bcm2710-rpi-zero-2-w.dtb
-rwx------ 1 cm staff 78973 25 Apr 13:11 bcm2712-rpi-cm5-cm4io.dtb
-rwx------ 1 cm staff 33668 8 Oct 2024 bcm2710-rpi-zero-2.dtb
-rwx------ 1 cm staff 79039 25 Apr 13:11 bcm2712-rpi-cm5-cm5io.dtb
-rwx------ 1 cm staff 56112 8 Oct 2024 bcm2711-rpi-4-b.dtb
-rwx------ 1 cm staff 79014 25 Apr 13:11 bcm2712-rpi-cm5l-cm4io.dtb
-rwx------ 1 cm staff 56116 8 Oct 2024 bcm2711-rpi-400.dtb
-rwx------ 1 cm staff 79080 25 Apr 13:11 bcm2712-rpi-cm5l-cm5io.dtb
-rwx------ 1 cm staff 38405 8 Oct 2024 bcm2711-rpi-cm4-io.dtb
-rwx------ 1 cm staff 78335 25 Apr 13:11 bcm2712d0-rpi-5-b.dtb
-rwx------ 1 cm staff 56596 8 Oct 2024 bcm2711-rpi-cm4.dtb
-rwx------ 1 cm staff 52476 25 Apr 13:11 bootcode.bin
-rwx------ 1 cm staff 53399 8 Oct 2024 bcm2711-rpi-cm4s.dtb
-rwx------ 1 cm staff 1024 25 Apr 13:11 bootenv
-rwx------ 1 cm staff 80149 8 Oct 2024 bcm2712-rpi-5-b.dtb
-rwx------ 1 cm staff 189 25 Apr 13:11 cmdline.txt
-rwx------ 1 cm staff 80595 8 Oct 2024 bcm2712-rpi-cm5-cm4io.dtb
-rwx------ 1 cm staff 495 28 Apr 16:42 config.json
-rwx------ 1 cm staff 80587 8 Oct 2024 bcm2712-rpi-cm5-cm5io.dtb
-rwx------ 1 cm staff 2235 25 Apr 13:11 config.txt
-rwx------ 1 cm staff 80636 8 Oct 2024 bcm2712-rpi-cm5l-cm4io.dtb
-rwx------ 1 cm staff 2022 25 Apr 13:11 device-type.json
-rwx------ 1 cm staff 80628 8 Oct 2024 bcm2712-rpi-cm5l-cm5io.dtb
-rwx------ 1 cm staff 3204 25 Apr 13:11 fixup_cd.dat
-rwx------ 1 cm staff 80133 8 Oct 2024 bcm2712d0-rpi-5-b.dtb
-rwx------ 1 cm staff 10268 25 Apr 13:11 fixup_x.dat
-rwx------ 1 cm staff 52476 19 Nov 12:31 bootcode.bin
-rwx------ 1 cm staff 7303 25 Apr 13:11 fixup.dat
-rwx------ 1 cm staff 0 31 Dec 1979 cmdline.txt
-rwx------ 1 cm staff 41 25 Apr 13:11 image-version-info
-rwx------ 1 cm staff 1247 19 Nov 12:32 config.txt
-rwx------ 1 cm staff 15214530 25 Apr 13:11 kernel8.img
-rwx------ 1 cm staff 3232 19 Nov 12:31 fixup_cd.dat
-rwx------ 1 cm staff 193 25 Apr 13:11 os-release
-rwx------ 1 cm staff 10295 19 Nov 12:31 fixup_db.dat
drwx------ 1 cm staff 31232 25 Apr 13:11 overlays
-rwx------ 1 cm staff 10295 19 Nov 12:31 fixup_x.dat
-rwx------ 1 cm staff 0 25 Apr 13:11 rpi-bootfiles-20241126.stamp
-rwx------ 1 cm staff 7327 19 Nov 12:31 fixup.dat
drwx------ 1 cm staff 512 25 Apr 13:11 splash
-rwx------ 1 cm staff 5456 19 Nov 12:31 fixup4.dat
-rwx------ 1 cm staff 808892 25 Apr 13:11 start_cd.elf
-rwx------ 1 cm staff 3232 19 Nov 12:31 fixup4cd.dat
-rwx------ 1 cm staff 3727656 25 Apr 13:11 start_x.elf
-rwx------ 1 cm staff 8450 19 Nov 12:31 fixup4db.dat
-rwx------ 1 cm staff 2980544 25 Apr 13:11 start.elf
-rwx------ 1 cm staff 8450 19 Nov 12:31 fixup4x.dat
drwx------ 1 cm staff 512 25 Apr 13:11 system-connections
-rwx------ 1 cm staff 2048 1 Jan 1970 FSCK0000.REC
drwx------ 1 cm staff 512 25 Apr 13:11 system-proxy
-rwx------ 1 cm staff 17847637 19 Nov 12:43 initramfs_2712
-rwx------ 1 cm staff 17843486 19 Nov 12:43 initramfs8
-rwx------ 1 cm staff 145 19 Nov 12:43 issue.txt
-rwx------ 1 cm staff 9292371 19 Nov 12:32 kernel_2712.img
-rwx------ 1 cm staff 9284374 19 Nov 12:32 kernel8.img
-rwx------ 1 cm staff 1594 19 Nov 12:31 LICENCE.broadcom
drwx------ 1 cm staff 30720 19 Nov 12:43 overlays
-rwx------ 1 cm staff 811804 19 Nov 12:31 start_cd.elf
-rwx------ 1 cm staff 4828616 19 Nov 12:31 start_db.elf
-rwx------ 1 cm staff 3730536 19 Nov 12:31 start_x.elf
-rwx------ 1 cm staff 2983488 19 Nov 12:31 start.elf
-rwx------ 1 cm staff 2259296 19 Nov 12:31 start4.elf
-rwx------ 1 cm staff 811804 19 Nov 12:31 start4cd.elf
-rwx------ 1 cm staff 3756808 19 Nov 12:31 start4db.elf
-rwx------ 1 cm staff 3006920 19 Nov 12:31 start4x.elf
(base)
(base)
~ via 🅒 base
~ via 🅒 base
➜ cat /Volumes/bootfs/cmdline.txt
➜ cat /Volumes/resin-boot/cmdline.txt
dwc_otg.lpm_enable=0 rootfstype=ext4 rootwait dwc_otg.lpm_enable=0 rootwait console=null quiet splash vt.global_cursor_default=0 consoleblank=0 cgroup_enable=memory balena_stage2 maxcpus=0
(base)
(base)
~ via 🅒 base
~ via 🅒 base
➜ cat /Volumes/bootfs/config.txt
➜ cat /Volumes/resin-boot/config.txt
# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details


# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on


# Enable audio (loads snd_bcm2835)
#sdtv_mode=0
dtparam=audio=on


# Additional overlays and parameters are documented
#sdtv_aspect=1
# /boot/firmware/overlays/README


# Automatically load overlays for detected cameras
#sdtv_disable_colourburst=1
camera_auto_detect=1


# Automatically load overlays for detected DSI displays
display_auto_detect=1


# Automatically load initramfs files, if found
#hdmi_safe=1
auto_initramfs=1


# Enable DRM VC4 V3D driver
#hdmi_force_hotplug=1
dtoverlay=vc4-kms-v3d
max_framebuffers=2


# Don't have the firmware create an initial video= setting in cmdline.txt.
#hdmi_ignore_hotplug=1
# Use the kernel's default instead.
disable_fw_kms_setup=1


# Run in 64-bit mode
#hdmi_drive=2
arm_64bit=1


# Disable compensation for displays with overscan
#hdmi_ignore_edid=0xa5000080
disable_overscan=1


# Run as fast as firmware / board allows
#hdmi_edid_file=1
arm_boost=1


[cm4]
#hdmi_ignore_edid_audio=1
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1


[cm5]
#hdmi_force_edid_audio=1
dtoverlay=dwc2,dr_mode=host


[all]
#hdmi_force_edid_3d=1
(base)

~ via 🅒 base
#avoid_edid_fuzzy_match=1
➜ grep -i "nvme\|pci" /Volumes/bootfs/config.txt

#hdmi_pixel_encoding=1

#hdmi_group=1

#hdmi_mode=1

#config_hdmi_boost=0

#hdmi_ignore_cec_init=1

#hdmi_ignore_cec=1


#overscan_left=0

#overscan_right=0

#overscan_top=0

#overscan_bottom=0

#disable_overscan=1


#framebuffer_width=0

#framebuffer_height=0

#framebuffer_depth=16

#framebuffer_ignore_alpha=0


#display_rotate=0

#dispmanx_offline=0


#decode_MPG2=0x12345678

#decode_WVC1=0x12345678


#start_x=0

#disable_camera_led=1


#test_mode=0


#disable_l2cache=0

gpu_mem=16

#gpu_mem_256=192

#gpu_mem_512=448

#gpu_mem_1024=944

#disable_pvt=1


#cma_lwm=16

#cma_hwm=32


#disable_commandline_tags=0

#cmdline=""

#kernel=""

#kernel_address=0x00000000

#kernel_old=1

#ramfsfile=""

#ramfsaddr=0x00000000

#initramfs initramf.gz 0x00800000

#device_tree_address=0x00000000

#init_uart_baud=115200

#init_uart_clock=3000000

#init_emmc_clock=100000000

#boot_delay=0

#boot_delay_ms=0

#avoid_safe_mode=1

#disable_splash=1


#force_turbo=0

#initial_turbo=0

#temp_limit=85

#arm_freq=700

#arm_freq_min=700

#gpu_freq=250

#core_freq=250

#core_freq_min=250

#h264_freq=250

#isp_freq=250

#v3d_freq=250

#sdram_freq=400

#sdram_freq_min=400

#avoid_pwm_pll=1


#current_limit_override=0x5A000020

#over_voltage=0

#over_voltage_min=0

#over_voltage_sdram=0

#over_voltage_sdram_c=0

#over_voltage_sdram_i=0

#over_voltage_sdram_p=0


#max_usb_current=0


#dtparam=audio=off

#dtparam=i2c_arm=off

#dtparam=i2c_vc=off

#dtparam=i2c_arm_baudrate=100000

#dtparam=i2c_vc_baudrate=100000

#dtparam=i2s=off

#dtparam=spi=off

#dtparam=random=off

#dtparam=uart0=on

#dtparam=watchdog=off

#dtparam=act_led_trigger=mmc

#dtparam=act_led_activelow=off

#dtparam=act_led_gpio=47

#dtparam=pwr_led_trigger=mmc

#dtparam=pwr_led_activelow=off

#dtparam=pwr_led_gpio=35
# Enable UART
enable_uart=0
# Enable VC4 Graphics
dtoverlay=vc4-kms-v3d,cma-320

dtparam=i2c_arm=on
dtparam=spi=on
disable_splash=1
avoid_warnings=1
dtparam=audio=on
(base)
(base)
~ via 🅒 base
~ via 🅒 base
sudo fdisk -l /dev/disk5
grep -i "nvme\|pci" /Volumes/resin-boot/config.txt
fdisk: illegal option -- l
usage: fdisk [-ieu] [-f mbrboot] [-c cyl -h head -s sect] [-S size] [-r] [-a style] disk
-i: initialize disk with new MBR
-u: update MBR code, preserve partition table
-e: edit MBRs on disk interactively
-f: specify non-standard MBR template
-chs: specify disk geometry
-S: specify disk size
-r: read partition specs from stdin (implies -i)
-a: auto-partition with the given style
-d: dump partition table
-y: don't ask any questions
-t: test if disk is partitioned
`disk' is of the form /dev/rdisk0.
auto-partition styles:
boothfs 8Mb boot plus HFS+ root partition (default)
hfs Entire disk as one HFS+ partition
dos Entire disk as one DOS partition
raid Entire disk as one 0xAC partition
(base)
(base)
~ via 🅒 base
~ via 🅒 base
sudo fdisk -e /dev/disk5
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> print
Disk: /dev/disk5 geometry: 31130/255/63 [500118192 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
*1: 0C 64 0 1 - 1023 3 32 [ 8192 - 163840] Win95 FAT32L
2: 83 1023 3 32 - 1023 3 32 [ 172032 - 1310720] Linux files*
3: 83 1023 3 32 - 1023 3 32 [ 1482752 - 1310720] Linux files*
4: 0F 1023 3 32 - 1023 3 32 [ 2793472 - 458752] Extended LBA
fdisk: 1>