We are having problems in programming a board and I'd like to share a test that i consider meaningful/interesting.
The critical point is write the root file system and while studying what is going on I tried to build a large file in ramdisk.So I added two lines like the following
<CMD state="Updater" type="push" body="$ df -h ."/>
<CMD state="Updater" type="push" body="$ dd if=/dev/zero of=/home/test.dat bs=1M count=8"/>
They should build a 8MB file. And it seems to work: this is rthe log from the console
UTP: received command '$ df -h .'
UTP: executing "df -h ."
Filesystem Size Used Avail Use% Mounted on
rootfs 339M 20M 319M 6% /
UTP: sending Success to kernel for command $ df -h ..
utp_poll: pass returned.
UTP: received command '$ dd if=/dev/zero of=/home/test.dat bs=1M count=8'
UTP: executing "dd if=/dev/zero of=/home/test.dat bs=1M count=8"
8+0 records in
8+0 records out
8388608 bytes (8.4 MB) copied, 0.066104 s, 127 MB/s
UTP: sending Success to kernel for command $ dd if=/dev/zero of=/home/test.dat bs=1M count=32.
utp_poll: pass returned.
UTP: received command '$ df -h .'
UTP: executing "df -h ."
Filesystem Size Used Avail Use% Mounted on
rootfs 339M 28M 311M 9% /
UTP: sending Success to kernel for command $ df -h ..
utp_poll: pass returned.
The file system usage has grown by a 3% and all is OK.
but if I try to build a larger file (64MB) this is what I get:
UTP: received command '$ df -h .'
UTP: executing "df -h ."
Filesystem Size Used Avail Use% Mounted on
rootfs 339M 20M 319M 6% /
UTP: sending Success to kernel for command $ df -h ..
utp_poll: pass returned.
UTP: received command '$ dd if=/dev/zero of=/home/test.dat bs=1M count=64'
UTP: executing "dd if=/dev/zero of=/home/test.dat bs=1M count=64"
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = 865b8000
[00000000] *pgd=166b9831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 3 PID: 91 Comm: dd Not tainted 4.1.15-1.0.0-mfgtool+g3924425 #1
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
task: 8632e3c0 ti: 86672000 task.ti: 86672000
PC is at __wake_up_common+0x14/0x80
LR is at __wake_up+0x38/0x4c
pc : [<80064cc4>] lr : [<80064d68>] psr: a00d0093
sp : 86673db0 ip : 00000000 fp : 00000000
Any idea bout what goes wrong?