back to 6.4:
bpi-r3 ~ # uname -r
6.4.0-bpi-r3-main
bpi-r3 ~ # cat /sys/class/thermal/thermal_zone0/temp
-274000
Another issue with the 6.4 kernel - after reboot u-boot is unable access SD-card:
F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 103F 0000
F3: 1001 0000 [0200]
F3: 1001 0000
F6: 300C 0028
F5: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [3000]
T0: 0000 01B7 [010F]
Jump to BL
NOTICE: BL2: v2.6(release):v2.6-897-gc30a1caf8274 sdmmc
NOTICE: BL2: Built : 09:39:42, Dec 16 2022
NOTICE: WDT: disabled
NOTICE: CPU: MT7986 (2000MHz)
NOTICE: EMI: Using DDR4 settings
NOTICE: EMI: Detected DRAM size: 2048MB
NOTICE: EMI: complex R/W mem test passed
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.6(release):v2.6-897-gc30a1caf8274 sdmmc
NOTICE: BL31: Built : 09:39:44, Dec 16 2022
U-Boot 2022.10-00039-g2d6f3964e104-dirty (Dec 16 2022 - 09:35:59 +0100)
CPU: MediaTek MT7986
Model: mt7986-rfb
DRAM: 2 GiB
Core: 44 devices, 20 uclasses, devicetree: separate
MMC: mmc@11230000: 0
Loading Environment from MMC... unable to read ssr
*** ERROR: Can't read GPT header ***
find_valid_gpt: *** ERROR: Invalid GPT ***
*** ERROR: Can't read GPT Entries ***
find_valid_gpt: *** ERROR: Invalid Backup GPT ***
*** ERROR: Can't read GPT header ***
.....
boot menu after ~x20 repeated messages
....
* No partition table - mmc 0 **
Couldn't find partition mmc 0:5
## Error: "initrd" not defined
mmc - MMC sub system
Usage:
mmc info - display info of the current MMC device
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan [mode]
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] [mode] - show or set current mmc device [partition] and set mode
- the required speed mode is passed as the index from the following list
[MMC_LEGACY, MMC_HS, SD_HS, MMC_HS_52, MMC_DDR_52, UHS_SDR12, UHS_SDR25,
UHS_SDR50, UHS_DDR50, UHS_SDR104, MMC_HS_200, MMC_HS_400, MMC_HS_400_ES]
mmc list - lists available devices
mmc wp [PART] - power on write protect boot partitions
arguments:
PART - [0|1]
: 0 - first boot partition, 1 - second boot partition
if not assigned, write protect all boot partitions
mmc hwpartition <USER> <GP> <MODE> - does hardware partitioning
arguments (sizes in 512-byte blocks):
USER - <user> <enh> <start> <cnt> <wrrel> <{on|off}>
: sets user data area attributes
GP - <{gp1|gp2|gp3|gp4}> <cnt> <enh> <wrrel> <{on|off}>
: general purpose partition
MODE - <{check|set|complete}>
: mode, complete set partitioning completed
WARNING: Partitioning is a write-once setting once it is set to complete.
Power cycling is required to initialize partitions after set to complete.
mmc setdsr <value> - set DSR register value
sd available
jedec_spi_nor spi_nor@0: unrecognized JEDEC id bytes: 00, ef, aa
Failed to initialize SPI flash at 0:0 (error 0)
NAND available
sd nand
fit=bpi-r3.itb
** No partition table - mmc 0 **
Couldn't find partition mmc 0:5
Can't set block device
BPI-R3>
the 6.1 always reboots correctly. 1st boot after a cold start to any kernel is always good.
uboot -> linux-6.1 -> reboot -> uboot -> linux 6.4 -> reboot -> uboot -> linux-6.4 ....
always works unlil cold boot
uboot -> linux-6.4 -> reboot -> uboot-error
as described
I’ll try to update u-boot and test again
P.S. u-boot is a stock image version
UPD:
BPI-R3> mmc info
Device: mmc@11230000
Manufacturer ID: 12
OEM: 3456
Name: SDBus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 58.2 GiB
Bus Width: 1-bit
Erase Group Size: 512 Bytes
BPI-R3> mmc rescan
unable to read ssr
unable to read ssr
BPI-R3>
cold boot:
BPI-R3> mmc info
Device: mmc@11230000
Manufacturer ID: 12
OEM: 3456
Name: SDBus Speed: 25000000
Mode: MMC legacy
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 58.2 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
bus-width is different
UPD: sometimes 6.4 reboots correctly.
6.1 -> warm reboot > 6.4 -> warm reboot > … i’ve tested it with 5x 6.4 reboots in a row