4GB Support on Jetson TK1

I purchased a 4gb and an 8gb variant from a vendor. I really appreciate any help that I can get.

Thanks

Hi tk1noob,

Have you managed to apply the patch successfully?
Which step is not clear?

Thanks

Hello bbasu,

We want to use 4G ram in TK1 too and we use “SKHynix H5TC8G63AMR PBA 652A” * 2 to construct it.
Do you know which BCT config should we use?
I follow your steps and flash the image but it stuck with “Starting kernel …”
Anything should I check again?
Thank you very much.

Hi Isa

You can use the BCT present in the zip file of the original post. If you have followed all the steps mentioned then, kernel should have booted. Boot stopping @ starting kernel must be some kernel crash in early boot. You can see the crash by enabling the below configs in your kernel ( tegra12_defconfig) and rerun the boot
If you know the UART instance used as debug console, you can just add these three configs in your defconfig and build kernel. Default is UARTD
CONFIG_TEGRA_DEBUG_UARTD=y
CONFIG_DEBUG_LL=y
CONFIG_EARLY_PRINTK_DIRECT=y

Mostly, the emc dvfs has failed, I hope you have disabled it. or kernel command line is missing?

cheers
Bibek

Hello bbasu,

I add the three configs and see the kernel boot fails at very early stage.
it just print following message:
Uncompressing Linux… done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.40 (inno@inno-All-Series) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) ) #3 SMP PREEMPT Mon Oct 30 13:44:30 CST 2017
CPU: ARMv7 Processor [413fc0f3] revision 3 (ARMv7), cr=30c7387d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine: jetson-tk1, model: NVIDIA Tegra124 PM375, serial: 0
Found tsec, start=0xf4900000 size=2000000

I print the other nomal log, the next message should be:
Tegra reserved memory:
LP0: f46ff000 - f46ff80f
Bootloader framebuffer: 00000000 - 00000000
Bootloader framebuffer2: 00000000 - 00000000
Framebuffer: f8500000 - f96fffff
2nd Framebuffer: f9700000 - fdefffff
Carveout: 00000000 - 00000000
Vpr: 00000000 - 00000000
Tsec: f4900000 - f68fffff
cma: CMA: reserved 16 MiB at ae800000
Memory policy: ECC disabled, Data cache writealloc
On node 0 totalpages: 492288
free_area_init_node: node 0, pgdat c0cdb940, node_mem_map c0e09000
Normal zone: 1520 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 194560 pages, LIFO batch:31
HighMem zone: 2510 pages used for memmap
HighMem zone: 297728 pages, LIFO batch:31
DTS File Name: /dvs/git/dirty/git-master_linux/kernel/arch/arm/boot/dts/tegra124-jetson_tk1-pm375-000-c00-00.dts
Tegra12: CPU Speedo value 2280, Soc Speedo value 2285, Gpu Speedo value 2116
Tegra12: CPU Speedo ID 5, Soc Speedo ID 0, Gpu Speedo ID 1
Tegra12: CPU Process ID 0,Soc Process ID 1,Gpu Process ID 0
Tegra Revision: A01 SKU: 0x87 CPU Process: 0 Core Process: 1
tegra: PLLP fixed rate: 408000000
tegra_clk_shared_bus_user_init: c2bus client se left ON
tegra_clk_shared_bus_user_init: c4bus client vi left ON

Would you give me some more hints or would you attach your zImage for me to test?
Thank you very much.

Hi Isa,

Can you share your host side flashing log?
Are you really flashing the new cfg file? PM375_T124_Hynix_4GB_H5TC8G63AMR_PBA_792Mhz.cfg

In the file : jetson-tk1.conf
you need to update the new cfg name to flash it
EMMC_BCT=PM375_T124_Hynix_4GB_H5TC8G63AMR_PBA_792Mhz.cfg;

cheers
Bibek

Hello Bibek,

Yes. I use the BCT file on your zip.
The problem is on the kernel command parameter,
The 4G ram on TK1 is OK now.
Thank you for your help.

I have done all of the instructions in this forum post, using the same L4T kernel and U-Boot versions shown in the successful boot log, with one memory region mem=2015M@2048M the kernel boots fine with 2G of RAM, whereas adding an additional mem=2048M@4096M or anything that goes beyond 4096M in the address space produces a kernel which doesn’t output anything at all. Has anyone seen this, or have any insight?

please follow this and report back

Hi Bibek,

Thanks for the info on the LL debug, that worked nicely. Yes, i’m using the BCT from the zip, and applied all of the patches.

Which kernel command line are you referring to?

I have disabled DVFS by disabling CONFIG_TEGRA_EMC_SCALING_ENABLE.

The majority of boots seem to fail on per cpu virtual memory allocations as follows, i’d be interested if you have any insights:

U-Boot SPL 2014.10-rc2-g27edcb915-dirty (Jan 31 2018 - 13:09:39)


U-Boot 2014.10-rc2-g27edcb915-dirty (Jan 31 2018 - 13:09:39)

...

6088880 bytes read in 181 ms (32.1 MiB/s)
50166 bytes read in 46 ms (1 MiB/s)
Kernel image @ 0x80408000 [ 0x000000 - 0x5ce8b0 ]
## Flattened Device Tree blob at 82000000
   Booting using the fdt blob at 0x82000000
   Using Device Tree in place at 82000000, end 8200f3f5

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.40+ (ed@potato) (gcc version 4.9.3 (GCC) ) #8 SMP PREEMPT Wed Jan 31 17:39:56 GMT 2018
CPU: ARMv7 Processor [413fc0f3] revision 3 (ARMv7), cr=30c7387d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine: jetson-tk1, model: NVIDIA Tegra124 PM375, serial: 0
Found tsec, start=0xf4900000 size=2000000Tegra reserved memory:
LP0:                    f46ff000 - f46ff80f
Bootloader framebuffer: 00000000 - 00000000
Bootloader framebuffer2: 00000000 - 00000000
Framebuffer:            f8500000 - f96fffff
2nd Framebuffer:        f9700000 - fdefffff
Carveout:               00000000 - 00000000
Vpr:                    00000000 - 00000000
Tsec:                   f4900000 - f68fffff
cma: CMA: reserved 16 MiB at ab400000
Memory policy: ECC disabled, Data cache writealloc
On node 0 totalpages: 1016576
free_area_init_node: node 0, pgdat c0baf640, node_mem_map c200d000
  Normal zone: 1416 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 181248 pages, LIFO batch:31
  HighMem zone: 6776 pages used for memmap
  HighMem zone: 835328 pages, LIFO batch:31
DTS File Name: arch/arm/boot/dts/tegra124-hd271.dts
Tegra12: CPU Speedo value 2218, Soc Speedo value 2147, Gpu Speedo value 1989
Tegra12: CPU Speedo ID 6, Soc Speedo ID 0, Gpu Speedo ID 5
Tegra12: CPU Process ID 0,Soc Process ID 1,Gpu Process ID 0
Tegra Revision: A01 SKU: 0x87 CPU Process: 0 Core Process: 1
tegra: PLLP fixed rate: 408000000
tegra_clk_shared_bus_user_init: c2bus client se left ON
tegra_clk_shared_bus_user_init: c4bus client vi left ON
Lowering cpu_lp maximum rate from 1350000000 to 1044000000
Lowering sbus maximum rate from 420000000 to 372000000
Lowering vic03 maximum rate from 900000000 to 756000000
Lowering tsec maximum rate from 900000000 to 756000000
Lowering msenc maximum rate from 600000000 to 480000000
Lowering se maximum rate from 600000000 to 480000000
Lowering vde maximum rate from 600000000 to 480000000
Lowering host1x maximum rate from 500000000 to 408000000
Lowering vi maximum rate from 700000000 to 600000000
Lowering isp maximum rate from 700000000 to 600000000
Lowering c4bus maximum rate from 700000000 to 600000000
Lowering pll_c maximum rate from 1400000000 to 1066000000
Lowering pll_c2 maximum rate from 1200000000 to 1066000000
Lowering pll_c3 maximum rate from 1200000000 to 1066000000
Lowering hdmi maximum rate from 594000000 to 297000000
Lowering sdmmc1 maximum rate from 208000000 to 204000000
Lowering sdmmc3 maximum rate from 208000000 to 204000000
Lowering gbus maximum rate from 1032000000 to 756000000
Lowering cpu_g maximum rate from 3000000000 to 1912500000
tegra dvfs: VDD_CPU nominal 1180mV, scaling enabled
tegra dvfs: VDD_CORE nominal 1150mV, scaling enabled
tegra dvfs: VDD_GPU nominal 1070mV, scaling enabled
Switching to timer-based delay loop
tegra_powergate_init: DONE
tegra12_plle_clk_enable: pll_e is already enabled
PERCPU: Embedded 8 pages/cpu @c4039000 s11264 r8192 d13312 u32768
pcpu-alloc: s11264 r8192 d13312 u32768 alloc=8*4096
pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1015160
Kernel command line: console=ttyS0,115200n8 no_console_suspend=1 lp0_vec=2064@0xf46ff000 mem=2015M@2048M memtype=255 ddr_die=2048M@2048M section=256M pmuboard=0x0177:0x0000:0x42:0x44:0x00 tsec=32M@3913M otf_key=c75e5bb91eb3bd947560357b64422f85 usbcore.old_scheme_first=1 usbcore.autosuspend=-1 core_edp_mv=1150 core_edp_ma=4000 tegraid=40.1.1.0.0 debug_uartport=lsport,3 power_supply=Adapter audio_codec=rt5640 modem_id=0 android.kerneltype=normal commchip_id=0 usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 touch_id=0@0 hd271_boardid=0xE3 board_info=0x0177:0x0000:0x42:0x44:0x00 mem=2048M@4096M ddr_die=2048M@4096M vmalloc=300M vt.global_cursor_default=0 root=/dev/mmcblk0p4 rootwait rw gpt
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1923MB 2048MB = 3971MB total
Memory: 4001816k/4001816k available, 158696k reserved, 3341308K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xec800000 - 0xff000000   ( 296 MB)
    lowmem  : 0xc0000000 - 0xec400000   ( 708 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0a26518   (10362 kB)
      .init : 0xc0a27000 - 0xc0a73c00   ( 307 kB)
      .data : 0xc0a74000 - 0xc0bc3390   (1341 kB)
       .bss : 0xc0bc3390 - 0xc0c3b844   ( 482 kB)
Preemptible hierarchical RCU implementation.
NR_IRQS:960
the number of interrupt controllers found is 5Architected local timer running at 12.00MHz (phys).
sched_clock: 56 bits at 12MHz, resolution 83ns, wraps every 2863311536128ns
Ignoring duplicate/late registration of read_current_timer delay
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. lpj=12000
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys debug
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0747b70 - 0xc0747c14
------------[ cut here ]------------
WARNING: at mm/percpu-vm.c:318 pcpu_alloc+0x94c/0xa04()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.40+ #8
[<c0015a4c>] (unwind_backtrace+0x0/0x12c) from [<c00125b0>] (show_stack+0x10/0x14)
[<c00125b0>] (show_stack+0x10/0x14) from [<c005c1b0>] (warn_slowpath_common+0x54/0x6c)
[<c005c1b0>] (warn_slowpath_common+0x54/0x6c) from [<c005c264>] (warn_slowpath_null+0x1c/0x24)
[<c005c264>] (warn_slowpath_null+0x1c/0x24) from [<c00eb1a4>] (pcpu_alloc+0x94c/0xa04)
[<c00eb1a4>] (pcpu_alloc+0x94c/0xa04) from [<c00761f0>] (__alloc_workqueue_key+0x2bc/0x444)
[<c00761f0>] (__alloc_workqueue_key+0x2bc/0x444) from [<c0a3cd5c>] (init_workqueues+0x34c/0x3bc)
[<c0a3cd5c>] (init_workqueues+0x34c/0x3bc) from [<c0008748>] (do_one_initcall+0xd4/0x190)
[<c0008748>] (do_one_initcall+0xd4/0x190) from [<c0a27b28>] (kernel_init_freeable+0x84/0x1dc)
[<c0a27b28>] (kernel_init_freeable+0x84/0x1dc) from [<c07395bc>] (kernel_init+0x8/0x160)
[<c07395bc>] (kernel_init+0x8/0x160) from [<c000ee98>] (ret_from_fork+0x14/0x3c)
---[ end trace 1b75b31a2719ed1c ]---
------------[ cut here ]------------
WARNING: at mm/vmalloc.c:126 vmap_page_range_noflush+0x214/0x294()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W    3.10.40+ #8
[<c0015a4c>] (unwind_backtrace+0x0/0x12c) from [<c00125b0>] (show_stack+0x10/0x14)
[<c00125b0>] (show_stack+0x10/0x14) from [<c005c1b0>] (warn_slowpath_common+0x54/0x6c)
[<c005c1b0>] (warn_slowpath_common+0x54/0x6c) from [<c005c264>] (warn_slowpath_null+0x1c/0x24)
[<c005c264>] (warn_slowpath_null+0x1c/0x24) from [<c00fe8ac>] (vmap_page_range_noflush+0x214/0x294)
[<c00fe8ac>] (vmap_page_range_noflush+0x214/0x294) from [<c00eada0>] (pcpu_alloc+0x548/0xa04)
[<c00eada0>] (pcpu_alloc+0x548/0xa04) from [<c00761f0>] (__alloc_workqueue_key+0x2bc/0x444)
[<c00761f0>] (__alloc_workqueue_key+0x2bc/0x444) from [<c0a3cd5c>] (init_workqueues+0x34c/0x3bc)
[<c0a3cd5c>] (init_workqueues+0x34c/0x3bc) from [<c0008748>] (do_one_initcall+0xd4/0x190)
[<c0008748>] (do_one_initcall+0xd4/0x190) from [<c0a27b28>] (kernel_init_freeable+0x84/0x1dc)
[<c0a27b28>] (kernel_init_freeable+0x84/0x1dc) from [<c07395bc>] (kernel_init+0x8/0x160)
[<c07395bc>] (kernel_init+0x8/0x160) from [<c000ee98>] (ret_from_fork+0x14/0x3c)
---[ end trace 1b75b31a2719ed1d ]---
PERCPU: allocation failed, size=256 align=256, failed to populate
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W    3.10.40+ #8
[<c0015a4c>] (unwind_backtrace+0x0/0x12c) from [<c00125b0>] (show_stack+0x10/0x14)
[<c00125b0>] (show_stack+0x10/0x14) from [<c00eb208>] (pcpu_alloc+0x9b0/0xa04)
[<c00eb208>] (pcpu_alloc+0x9b0/0xa04) from [<c00761f0>] (__alloc_workqueue_key+0x2bc/0x444)
[<c00761f0>] (__alloc_workqueue_key+0x2bc/0x444) from [<c0a3cd5c>] (init_workqueues+0x34c/0x3bc)
[<c0a3cd5c>] (init_workqueues+0x34c/0x3bc) from [<c0008748>] (do_one_initcall+0xd4/0x190)
[<c0008748>] (do_one_initcall+0xd4/0x190) from [<c0a27b28>] (kernel_init_freeable+0x84/0x1dc)
[<c0a27b28>] (kernel_init_freeable+0x84/0x1dc) from [<c07395bc>] (kernel_init+0x8/0x160)
[<c07395bc>] (kernel_init+0x8/0x160) from [<c000ee98>] (ret_from_fork+0x14/0x3c)
------------[ cut here ]------------
kernel BUG at kernel/workqueue.c:5061!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W    3.10.40+ #8
task: eac8da40 ti: eac98000 task.ti: eac98000
PC is at init_workqueues+0x380/0x3bc
LR is at __alloc_workqueue_key+0x204/0x444
pc : [<c0a3cd90>]    lr : [<c0076138>]    psr: 60000113
sp : eac99ef8  ip : c09ee328  fp : c0aa9414
r10: 00000004  r9 : c0aa9f60  r8 : c0a73040
r7 : c0bef664  r6 : ffffffec  r5 : c0aa9428  r4 : 00000000
r3 : eac07200  r2 : 00000001  r1 : c200d000  r0 : 00000000
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 30c5387d  Table: 80003000  DAC: fffffffd

PC: 0xc0a3cd10:
cd10  e30909f0 e34c008f ebd8e485 e58d4000 e1a02004 e1a03004 e3a01080 e5850010
cd30  e3090a04 e34c008f ebd8e47d e58d4000 e1a03004 e1a02004 e3a01084 e5850014
cd50  e3090a1c e34c008f ebd8e475 e5953000 e1530004 e5850018 0a000008 e5953004
cd70  e1530004 0a000005 e5953008 e3530000 0a000002 e595300c e3530000 1a000000
cd90  e7f001f2 e5953010 e3530000 0afffffb e5953014 e3530000 0afffff8 e3500000
cdb0  0afffff6 e3a00000 e28dd01c e8bd8ff0 c0bb0ca0 c0b471d0 c0bef66c e92d4030
cdd0  e24dd01c e3a04000 e3075270 e3090a98 e34c50b4 e1a02004 e3a01003 e3a03a01
cdf0  e58d1000 e58d3010 e3a01004 e3a03012 e58d4008 e58d5004 e34c008f e58d400c

LR: 0xc00760b8:
60b8  eb1b3bce e3073190 e34c30b4 e2830040 e1a02003 e5b210a8 e58390a8 e5819004
60d8  e5841008 e584200c eb1b3bc4 e1a00004 e28dd034 e8bd8ff0 e3110002 0affff9c
60f8  e30f3530 e34c30be e593312c e30810d0 e1a03103 e28300c0 eb025429 e2504000
6118  0a000093 e3a000d0 ebfffd6d e3500000 e584005c 1affff95 e1a00004 eb025250
6138  e3a00000 eaffffe9 e5951134 ebfffe74 e3500000 1affffbf e5943060 e5942000
6158  e2833060 e1520003 0a00007d e30907f4 e3092988 e34c008f e34c208f e301100e
6178  e1a0300a ebff9811 e3170008 0affffb5 ebfff2b5 e2505000 0a000068 e30404e4
6198  e30035e4 e585404c e34c0007 e58da000 e34c3090 e1a01005 e3e02000 eb00102a

SP: 0xeac99e78:
9e78  c0aa9d44 eac07140 c0bef530 00000000 00000084 eac07150 eac07140 c0bef530
9e98  c0a3cd94 00000000 c000ed18 00000000 e7100000 c000ea6c 00000000 c200d000
9eb8  00000001 eac07200 00000000 c0aa9428 ffffffec c0bef664 c0a73040 c0aa9f60
9ed8  00000004 c0aa9414 c09ee328 eac99ef8 c0076138 c0a3cd90 60000113 ffffffff
9ef8  00000000 c0aa9414 c0b45bd0 c0aa941c 00000000 ffffffec eac98000 c0bc33c0
9f18  eac98038 00000000 c0a3ca10 00000000 00000000 00000000 00000000 c0008748
9f38  00000000 00000000 00000000 c00a3e20 00000001 c0a6fdb8 c0a6fdd0 00000000
9f58  00000000 00000000 00000000 00000000 00000000 c0a27b28 eac8d540 00000001

IP: 0xc09ee2a8:
e2a8  7f61f474 800daeb0 7f61f5e4 8014afb0 7f61f7d0 80028400 7f61f868 800daeb0
e2c8  7f61fb38 8006abb0 7f61fba8 8006a9b0 7f61fbf8 801aafb0 7f6201d4 800aafb0
e2e8  7f620458 80b0b0b0 7f6204e4 80b108a9 7f620578 00033cec 7f620620 00033cf0
e308  7f620678 00033cf4 7f620710 00033cf8 7f620768 00033cfc 7f6207e0 00000001
e328  7f6212b8 80b0b0b0 7f621304 8002a9b0 7f621354 80aab0b0 7f6213dc 8002afb0
e348  7f621578 80b0b0b0 7f6215a0 80a8b0b0 7f621604 8002afb0 7f6216ec 80b0b0b0
e368  7f6216e8 80b108a9 7f62175c 80a8b0b0 7f621798 80b0b0b0 7f6217ac 00033ca0
e388  7f6217dc 80b0b0b0 7f6217f0 00033c9c 7f6217f8 80a8b0b0 7f621830 80b108a9

FP: 0xc0aa9394:
9394  ceb6af04 90d34de8 5a0fecb3 a5d9c4e1 6f0565ba 31608756 fbbc260d 3ab7828b
93b4  f06b23d0 ae0ec13c 64d26067 00000000 00000000 00068097 00000009 c0020dd4
93d4  c0020e0c 90f00000 c0020908 c00208cc 00000022 ffffffff 0000001f 00000000
93f4  00000000 00000100 00000001 00000001 00000001 00000000 00000000 00000000
9414  00000001 0000000f 0000000f 00000001 00000000 eac07500 eac07440 eac07380
9434  eac08980 eac072c0 eac07200 00000000 00000000 00000015 00000001 00000000
9454  00000e7b 000003e8 00000004 00000032 00000001 00000001 00000020 00000001
9474  0007a120 00000000 00000064 00989680 00000001 00004e20 00000000 00000000

R1: 0xc200cf80:
cf80  8ba95be2 8aa949a2 8bab4be2 0ba14362 abb94ff7 8ba90b22 83abebea 8ba84be2
cfa0  17ac8ea7 27ac86ab 27acaeeb 27ac0ea3 a7ac9eb3 04ac8e21 27ae8ea7 279c8ea1
cfc0  27ac0003 65ad8eff 23ac8e20 23be8ef3 27ac8ca3 27ac2fa3 27ad0ca3 2fadaea3
cfe0  8ba909e2 8babcbe2 8ba90be2 8fa9cbe2 8ba90982 8ea95fe2 0ba94962 8fa94ff7
d000  00000000 00000000 00000002 ffffff80 00000000 c0baf6bc c2029154 00000001
d020  00000000 00000000 00000002 ffffffff 00000000 00100100 00200200 00000000
d040  00000000 00000000 00000002 ffffff80 00000000 c2574d54 c2029134 00000000
d060  00000400 00000000 00000000 ffffffff 00000001 c200d074 c200d074 00000000

R3: 0xeac07180:
7180  eac07180 eac07180 eac07188 eac07188 00000000 00000000 00000100 00000000
71a0  00000000 00000000 6e657665 665f7374 7a656572 656c6261 776f705f 005f7265
71c0  00000084 00000000 00000000 00000000 00000000 00000000 00000000 00000000
71e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
7200  c4057260 c403f260 eac072c8 c0b47238 00000001 00000000 eac07218 eac07218
7220  00000000 00000000 00000000 00000000 00000000 00000000 eac07238 eac07238
7240  eac07240 eac07240 eac07248 eac07248 00000000 00000000 00000100 00000000
7260  00000000 00000000 6e657665 705f7374 7265776f 6666655f 65696369 0000746e

R5: 0xc0aa93a8:
93a8  31608756 fbbc260d 3ab7828b f06b23d0 ae0ec13c 64d26067 00000000 00000000
93c8  00068097 00000009 c0020dd4 c0020e0c 90f00000 c0020908 c00208cc 00000022
93e8  ffffffff 0000001f 00000000 00000000 00000100 00000001 00000001 00000001
9408  00000000 00000000 00000000 00000001 0000000f 0000000f 00000001 00000000
9428  eac07500 eac07440 eac07380 eac08980 eac072c0 eac07200 00000000 00000000
9448  00000015 00000001 00000000 00000e7b 000003e8 00000004 00000032 00000001
9468  00000001 00000020 00000001 0007a120 00000000 00000064 00989680 00000001
9488  00004e20 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R7: 0xc0bef5e4:
f5e4  00000000 00000000 eac939e4 00000000 00000000 00000000 00000000 00000000
f604  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
f624  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
f644  00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000
f664  eac8cac0 eac8ca40 eac8cb00 eac8ca80 00000000 c4059200 00000000 00000000
f684  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
f6a4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
f6c4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R8: 0xc0a72fc0:
2fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
2fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3000  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3020  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3040  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3060  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3080  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
30a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R9: 0xc0aa9ee0:
9ee0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9f00  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9f20  000003e8 00008000 0000000f c4059100 0000002c c40590c0 c4059080 00000008
9f40  c4039000 00000004 c4059000 c4059040 00000001 00001000 00000000 00000003
9f60  035c8000 035d0000 035d8000 035e0000 000cbeff 00000001 00000000 0017ffff
9f80  00020000 00002000 00000000 00000032 0000fffa 00000001 00000000 00000000
9fa0  eac16c40 00000000 00000000 00000000 00000000 00000011 c405d200 0001ffff
9fc0  eac16d40 eac16dc0 00000064 eac16cc0 00000010 c40dd200 0000ffff 00100000
Process swapper/0 (pid: 1, stack limit = 0xeac98238)
Stack: (0xeac99ef8 to 0xeac9a000)
9ee0:                                                       00000000 c0aa9414
9f00: c0b45bd0 c0aa941c 00000000 ffffffec eac98000 c0bc33c0 eac98038 00000000
9f20: c0a3ca10 00000000 00000000 00000000 00000000 c0008748 00000000 00000000
9f40: 00000000 c00a3e20 00000001 c0a6fdb8 c0a6fdd0 00000000 00000000 00000000
9f60: 00000000 00000000 00000000 c0a27b28 eac8d540 00000001 c403b4c0 c00828c8
9f80: 00000000 c07395b4 00000000 00000000 00000000 00000000 00000000 c07395bc
9fa0: 00000000 00000000 c07395b4 c000ee98 00000000 00000000 00000000 00000000
9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 c06b63e0 00000000
[<c0a3cd90>] (init_workqueues+0x380/0x3bc) from [<c0008748>] (do_one_initcall+0xd4/0x190)
[<c0008748>] (do_one_initcall+0xd4/0x190) from [<c0a27b28>] (kernel_init_freeable+0x84/0x1dc)
[<c0a27b28>] (kernel_init_freeable+0x84/0x1dc) from [<c07395bc>] (kernel_init+0x8/0x160)
[<c07395bc>] (kernel_init+0x8/0x160) from [<c000ee98>] (ret_from_fork+0x14/0x3c)
Code: 0a000002 e595300c e3530000 1a000000 (e7f001f2) 
---[ end trace 1b75b31a2719ed1e ]---
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

memtype need to set to 1 in kernel command line
your log says it as 255

Yes, I’ve also tried with memtype=1, with similar issues.

What is the DDR make you are using?

Hi bbasu,

Alliance Memory AS4C512M16D3L (4 chips)

https://www.alliancememory.com/wp-content/uploads/pdf/ddr3/20160614%20-%208GB_DDR3L_AS4C512M16D3L_AS4C1G8MD3L%20revised%20v%202.0%20June%202016.pdf

It’s 64M x 16 x 8 banks, i was wondering if this is going to be an issue, since the RAM i’ve seen mentioned used with Jetsons or the K1 seems to be 512M x 16 x 4 banks.

I guess the memory geometry has to be set up in the BCT for there to be any chance of it working…? :)

With this memory, is 2GB configuration working?

It is, yes.

Hi bbasu,

Thanks for your help.

I patched the BCT as follows and it now boots fine.

diff --git a/PM375_Hynix_4GB_H5TC8G63AMR_PBA_792MHz.cfg b/PM375_Hynix_4GB_H5TC8G63AMR_PBA_792MHz.cfg
index 4e53bcc..5e3afda 100644
--- a/PM375_Hynix_4GB_H5TC8G63AMR_PBA_792MHz.cfg
+++ b/PM375_Hynix_4GB_H5TC8G63AMR_PBA_792MHz.cfg
@@ -259,8 +259,8 @@ SDRAM[0].EmcDsrVttgenDrv                          = 0x0606003f;
 SDRAM[0].EmcTxdsrvttgen                           = 0x00000000;
 SDRAM[0].EmcBgbiasCtl0                            = 0x00000000;
 SDRAM[0].McEmemAdrCfg                             = 0x00000001;
-SDRAM[0].McEmemAdrCfgDev0                         = 0x00080303;
-SDRAM[0].McEmemAdrCfgDev1                         = 0x00080303;
+SDRAM[0].McEmemAdrCfgDev0                         = 0x00090303;
+SDRAM[0].McEmemAdrCfgDev1                         = 0x00090303;
 SDRAM[0].McEmemAdrCfgBankMask0                    = 0x00001248;
 SDRAM[0].McEmemAdrCfgBankMask1                    = 0x00002490;
 SDRAM[0].McEmemAdrCfgBankMask2                    = 0x00000920;

Kernel command line:

console=ttyS0,115200n8 no_console_suspend=1 lp0_vec=2064@0xf46ff000 mem=2015M@2048M memtype=1 ddr_die=2048M@2048M section=256M pmuboard=0x0177:0x0000:0x42:0x44:0x00 tsec=32M@3913M otf_key=c75e5bb91eb3bd947560357b64422f85 usbcore.old_scheme_first=1 usbcore.autosuspend=-1 core_edp_mv=1150 core_edp_ma=4000 tegraid=40.1.1.0.0 debug_uartport=lsport,3 power_supply=Adapter audio_codec=rt5640 modem_id=0 android.kerneltype=normal commchip_id=0 usb_port_owner_info=2 lane_owner_info=6 emc_max_dvfs=0 touch_id=0@0 hd271_boardid=0xE3 board_info=0x0177:0x0000:0x42:0x44:0x00 mem=2048M@4096M ddr_die=2048M@4096M vmalloc=300M vt.global_cursor_default=0 root=/dev/mmcblk0p4 rootwait rw gpt

good to know.
How you concluded?

It’s working having done a reasonable amount of stress testing, etc. So all good.

Well, excuse me, i have a shield tablet k1, could i upgrade the ram to 3GB? could it work? i know xiaomi pad 1 also use tegra k1, and i can be upgraded to 3gb ram