[Bug 1847500] Re: Full RAM on Pi4 isn't accessible when using u-boot
Hui Wang
hui.wang at canonical.com
Thu Oct 10 02:16:34 UTC 2019
This is the log of armhf kernel + armhf uboot:
MMC: emmc2 at 7e340000: 0, mmcnr at 7e300000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
No ethernet found.
Unknown command 'usb' - try 'help'
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
777 bytes read in 47 ms (15.6 KiB/s)
## Executing script at 02400000
7315968 bytes read in 1424 ms (4.9 MiB/s)
20730891 bytes read in 3932 ms (5 MiB/s)
Kernel image @ 0x1000000 [ 0x000000 - 0x6fa200 ]
## Flattened Device Tree blob at 03000000
Booting using the fdt blob at 0x3000000
Using Device Tree in place at 03000000, end 0300d350
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.3.0-1004-raspi2 (root at hwang4-Vostro-5390) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #5 SMP Wed Sep 18 23:44:29 CST 2019 (Ubuntu 5.3.0-1004.5-raspi2 5.3.0)
[ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1
[ 0.000000] Memory policy: Data cache writealloc
....
ubuntu at ubuntu:~$ uname -a
Linux ubuntu 5.3.0-1004-raspi2 #5 SMP Wed Sep 18 23:44:29 CST 2019 armv7l armv7l armv7l GNU/Linux
ubuntu at ubuntu:~$ free
total used free shared buff/cache available
Mem: 3916244 145836 3600732 21912 169676 3704604
Swap: 0 0 0
ubuntu at ubuntu:~$ sudo ifconfig wlan0 up
ubuntu at ubuntu:~$ sudo iwlist wlan0 scanning
wlan0 Scan completed :
Cell 01 - Address: 58:C8:76:6B:C3:11
Channel:36
Frequency:5.18 GHz (Channel 36)
Quality=34/70 Signal level=-76 dBm
Encryption key:on
ESSID:"CMCC-T69d-5G"
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 4ms ago
IE: Unknown: 000C434D43432D543639642D3547
IE: Unknown: 01088C129824B048606C
IE: Unknown: 030124
IE: Unknown: 05040001000C
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD270050F204104A000110104400010210470010BC329E001DD811B2860158C8766BC311103C000102
IE: Unknown: 2D1AEF0117FFFF0000010000000000000000000000000C0000000000
IE: Unknown: 3D1624050400000000000000000000000000000000000000
IE: Unknown: BF0C3000C031FAFF0C03FAFF0C03
IE: Unknown: C005012A00FAFF
IE: Unknown: 7F080000000000000040
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: 200100
IE: Unknown: C304020F0F00
IE: Unknown: DD07000C4304000000
IE: Unknown: DD07000CE700000000
Cell 02 - Address: 68:D1:BA:17:A2:E1
Channel:44
Frequency:5.22 GHz (Channel 44)
Quality=27/70 Signal level=-83 dBm
Encryption key:on
ESSID:"CMCC-2wzy-5G"
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 4ms ago
IE: Unknown: 000C434D43432D32777A792D3547
IE: Unknown: 01088C129824B048606C
IE: Unknown: 03012C
IE: Unknown: 0706555320240D14
IE: Unknown: 050400010002
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
...
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to u-boot in Ubuntu.
https://bugs.launchpad.net/bugs/1847500
Title:
Full RAM on Pi4 isn't accessible when using u-boot
Status in u-boot package in Ubuntu:
Confirmed
Bug description:
Booting the latest eoan daily on a Pi4 with >1Gb of RAM, only the
first 1Gb of RAM appears accessible:
ubuntu at ubuntu:~$ free
total used free shared buff/cache available
Mem: 931920 185484 504748 3664 241688 723820
Swap: 0 0 0
However, adjusting the config.txt so that the kernel is booted
directly without u-boot in between results in the full 4Gb being
accessible:
ubuntu at ubuntu:~$ free
total used free shared buff/cache available
Mem: 3884464 189852 3457504 3656 237108 3636004
Swap: 0 0 0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/u-boot/+bug/1847500/+subscriptions
More information about the foundations-bugs
mailing list