I solder 1GB ram chip MT41K512M16HA-107:A.
If i change memcfg setting to 0x1527 all works but after restart firmware restore nvram memcfg to 0x1427 and OS only view 512MB
Need add suport 1GB to firmware
PS i brick router with bad CFE, how restore CFE with UART?
problem in this code
If i change memcfg setting to 0x1527 all works but after restart firmware restore nvram memcfg to 0x1427 and OS only view 512MB
Need add suport 1GB to firmware
PS i brick router with bad CFE, how restore CFE with UART?
problem in this code
C:
void bcm63xx_run(int breakIntoCfe, int autorun)
{
int ret = 0, i = 0;
unsigned short gpio;
printSysInfo();
#if defined(_BCM963138_) || defined(_BCM963148_) || defined(_BCM94908_)
{
unsigned int memcfg;
if (validateMemoryConfig(NVRAM_RP, &memcfg)) {
NVRAM_UPDATE_FIELD(ulMemoryConfig, &memcfg, sizeof(memcfg));
printf("\nMEMORY CONFIG UPDATED... REBOOTING\n");
cfe_sleep(2*CFE_HZ);
softReset(0);
}
}
May 5 05:05:13 kernel: Memory: 963632K/1019904K available (4698K kernel code, 290K rwdata, 1576K rodata, 228K init, 521K bss, 56272K reserved, 0K cma-reserved)
May 5 05:05:13 kernel: Virtual kernel memory layout:
May 5 05:05:13 kernel: vmalloc : 0xffffff8000000000 - 0xffffffbdffff0000 ( 247 GB)
May 5 05:05:13 kernel: vmemmap : 0xffffffbe00000000 - 0xffffffbfc0000000 ( 7 GB maximum)
May 5 05:05:13 kernel: 0xffffffbe00000000 - 0xffffffbe00e00000 ( 14 MB actual)
May 5 05:05:13 kernel: fixed : 0xffffffbffabfd000 - 0xffffffbffac00000 ( 12 KB)
May 5 05:05:13 kernel: PCI I/O : 0xffffffbffae00000 - 0xffffffbffbe00000 ( 16 MB)
May 5 05:05:13 kernel: modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
May 5 05:05:13 kernel: memory : 0xffffffc000000000 - 0xffffffc040000000 ( 1024 MB)
May 5 05:05:13 kernel: .init : 0xffffffc0006a2000 - 0xffffffc0006db000 ( 228 KB)
May 5 05:05:13 kernel: .text : 0xffffffc000080000 - 0xffffffc0006a1274 ( 6277 KB)
May 5 05:05:13 kernel: .data : 0xffffffc0006dc000 - 0xffffffc000724a80 ( 291 KB)
admin@RT-AC86U-5220:/tmp/home/root# cat /proc/meminfo
MemTotal: 963860 kB
MemFree: 688204 kB
MemAvailable: 672628 kB
Buffers: 0 kB
Cached: 18208 kB
SwapCached: 0 kB
Active: 29052 kB
admin@RT-AC86U-5220:/tmp/home/root# free
total used free shared buffers cached
Mem: 963860 275640 688220 868 0 18208
-/+ buffers/cache: 257432 706428
Swap: 0 0 0
admin@RT-AC86U-5220:/tmp/home/root#
Last edited: