Change memory from 512M to 256M

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change memory from 512M to 256M

1,488 Views
lixiao
Contributor I

I change the imx6ul evk board's ddr3 from 512M to 256M.The memory type is Samsung K4B2G1646F-BYK0.I config the register using the tool I.MX6UL_DDR3_Script_Aid_V0.02.xlsx like this:pastedImage_1.png

   But when i use the RealView .inc generated by this tools to programe using mfgtools,the kernel crashed causing by the memory.This is the log:

[BEGIN] 2017/12/30 0:42:24
Booting Linux on physical CPU 0x0
Linux version 4.1.15-1.0.0-mfgtool+g3924425 (stzn@stzn-dev) (gcc version 5.2.0 (GCC) ) #6 SMP PREEMPT Thu Nov 2 23:27:34 CST 2017
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Freescale i.MX6 UltraLite 14x14 EVK Board
cma: Reserved 128 MiB at 0x88000000
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @87d93000 s16768 r8192 d24192 u49152
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttymxc0,115200 cma=128Mrdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.file=/fat g_mass_storage.ro=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber= mtdparts=21e0000.qspi:1m(uboot),8m(kernel),1m(dtb),20m(rootfs),-(nvrom) clk_ignore_unused
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 110524K/262144K available (6895K kernel code, 319K rwdata, 2392K rodata, 384K init, 423K bss, 20548K reserved, 131072K cma-reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0x90800000 - 0xff000000 (1768 MB)
lowmem : 0x80000000 - 0x90000000 ( 256 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.text : 0x80008000 - 0x80919f88 (9288 kB)
.init : 0x8091a000 - 0x8097a000 ( 384 kB)
.data : 0x8097a000 - 0x809c9f00 ( 320 kB)
.bss : 0x809cc000 - 0x80a35f14 ( 424 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
Additional per-CPU info printed with stalls.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS:16 nr_irqs:16 16
mxc_clocksource_init 24000000
Switching to timer-based delay loop, resolution 41ns
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80008280 - 0x800082f0
Brought up 1 CPUs
SMP: Total of 1 processors activated (48.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
device-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
mxs-dma 1804000.dma-apbh: initialized
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c i2c-0: IMX I2C adapter registered
i2c i2c-0: can't use DMA
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can't use DMA
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource mxc_timer1
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 7392K (83800000 - 83f38000)
imx rpmsg driver is registered.
Bus freq driver module loaded
futex hash table entries: 256 (order: 2, 16384 bytes)
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
fuse init (API version 7.23)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-weim 21b8000.weim: Driver registered.
backlight supply power not found, using dummy regulator
21c8000.lcdif supply lcd not found, using dummy regulator
mxsfb 21c8000.lcdif: failed to find mxc display driver
Console: switching to colour frame buffer device 60x34
mxsfb 21c8000.lcdif: initialized
imx-sdma 20ec000.sdma: no event needs to be remapped
imx-sdma 20ec000.sdma: loaded firmware 3.3
imx-sdma 20ec000.sdma: initialized
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMX
console [ttymxc0] enabled
21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 235, base_baud = 5000000) is a IMX
imx sema4 driver is registered.
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
fsl-quadspi 21e0000.qspi: n25q256a (32768 Kbytes)
5 cmdlinepart partitions found on MTD device 21e0000.qspi
Creating 5 MTD partitions on "21e0000.qspi":
0x000000000000-0x000000100000 : "uboot"
0x000000100000-0x000000900000 : "kernel"
0x000000900000-0x000000a00000 : "dtb"
0x000000a00000-0x000001e00000 : "rootfs"
0x000001e00000-0x000002000000 : "nvrom"
20b4000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
fec 20b4000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
fec 20b4000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 96:e1:fe:af:81:54
libphy: fec_enet_mii_bus: probed
fec 20b4000.ethernet eth0: registered PHC device 0
2188000.ethernet supply phy not found, using dummy regulator
pps pps1: new PPS source ptp1
fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: ae:84:31:35:b4:1b
fec 2188000.ethernet eth1: registered PHC device 1
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
2184000.usb supply vbus not found, using dummy regulator
2184200.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
LUN: removable read only file: /fat
Number of LUNs=1
Number of LUNs=1
g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
g_mass_storage gadget: g_mass_storage ready
mousedev: PS/2 mouse device common for all mice
input: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
input: iMX6UL TouchScreen Controller as /devices/platform/soc/2000000.aips-bus/2040000.tsc/input/input1
snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
pxp-v4l2 pxp_v4l2: initialized
imx2-wdt 20bc000.wdog: use WDOG_B to reboot.
imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
/soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified
sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
/soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecified
sdhci-esdhc-imx 2194000.usdhc: No vmmc regulator found
sdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator found
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Key type dns_resolver registered
cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
Registering SWP/SWPB emulation handler
snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
mmc1: new DDR MMC card at address 0001
mmcblk1: mmc1:0001 SEM04G 3.68 GiB
mmcblk1boot0: mmc1:0001 SEM04G partition 1 1.00 MiB
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
mmcblk1boot1: mmc1:0001 SEM04G partition 2 1.00 MiB
mmcblk1rpmb: mmc1:0001 SEM04G partition 3 128 KiB
VSD_3V3: disabling
can-3v3: disabling
clk: Not disabling unused clocks
mmcblk1: p1 p2 p3
ALSA device list:
No soundcards found.
Freeing unused kernel memory: 384K (8091a000 - 8097a000)
Failed to execute /init (error -13)
sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell
sh-4.3# usb 1-1: new high-speed USB device number 2 using ci_hdrc
Unable to handle kernel NULL pointer dereference at virtual address 00000009
pgd = 80004000
[00000009] *pgd=00000000
Internal error: Oops: 17 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 43 Comm: file-storage Not tainted 4.1.15-1.0.0-mfgtool+g3924425 #6
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
task: 87c42140 ti: 8629e000 task.ti: 8629e000
PC is at fsg_main_thread+0xaf8/0x22d4
LR is at fsg_main_thread+0xaf8/0x22d4
pc : [<8044cbb4>] lr : [<8044cbb4>] psr: 200b0013
sp : 8629fef0 ip : 00000000 fp : 86296134
r10: 86296100 r9 : 43425355 r8 : 80a260e0
r7 : 80a260e0 r6 : 86290880 r5 : 9085d000 r4 : 00000000
r3 : 80a26118 r2 : 00000000 r1 : 00000001 r0 : 80a260f8
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c5387d Table: 8637c06a DAC: 00000015
Process file-storage (pid: 43, stack limit = 0x8629e210)
Stack: (0x8629fef0 to 0x862a0000)
fee0: 00000000 80880fbc 87c423ec 87d96740
ff00: 00000000 00000000 87c423ec 9085d000 90865000 80695454 87d96740 80691c88
ff20: 00000000 8603fdbc 00000000 87c42140 800653bc 8629ff34 8629ff34 8628e240
ff40: 86296100 00000000 8628e240 86296100 8044c0bc 00000000 00000000 00000000
ff60: 00000000 8004e5c8 87d44000 00000000 8629ff9c 86296100 00000000 00000000
ff80: 8629ff80 8629ff80 00000000 00000000 8629ff90 8629ff90 8629ffac 8628e240
ffa0: 8004e4f4 00000000 00000000 8000f568 00000000 00000000 00000000 00000000
ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 fd7fffff dfffffff
[<8044cbb4>] (fsg_main_thread) from [<8004e5c8>] (kthread+0xd4/0xf0)
[<8004e5c8>] (kthread) from [<8000f568>] (ret_from_fork+0x14/0x2c)
Code: e5b34038 e1540003 03a04000 eb091b2b (e5d40009)
---[ end trace 1810310f266a87e7 ]---
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage

Did anyone meet the same problem?How did you solve this problem?(The attachment is the datasheet of the ddr3)

Labels (2)
0 Kudos
2 Replies

965 Views
igorpadykov
NXP Employee
NXP Employee

Hi Charles

for using new board with mfg tools it is necessary to rebuild mfg tools

(please use sect.6.2 Manufacturing Tool, MFGTool attached Yocto Guide)

firmware (files in /firmware folder) with new ddr calibration coefficients (found from ddr test)

in uboot/..mx6ul_14x14_evk/imximage.cfg.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

965 Views
lixiao
Contributor I

Hi,igorpadykov:

  I have checked, the problem is not caused by no calibration.Thanks for your help.I have found the reason.I allocation 128M to the cma config ,but the total memory is 256M.The cma allocation is too large, resulting in insufficient system memory, so kernel can not start normally.

0 Kudos