UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer sconvertini
Observer
789 Views
Registered: ‎09-06-2018

Creating and use jffs2 partition on MicroZed ZC702x

Dear all,

I'm using the MicroZed board mounting the ZC702x.

I'm trying to create a further partition in the flash memory.

To do this I modified the device tree as follow:

ps7_qspi_0: ps7-qspi@e000d000 {
			bus-num = <0>;
			compatible = "xlnx,ps7-qspi-1.00.a";
			interrupt-parent = <&ps7_scugic_0>;
			interrupts = < 0 19 4 >;
			is-dual = <0>;
			num-chip-select = <1>;
			reg = < 0xe000d000 0x1000 >;
			speed-hz = <200000000>;
			xlnx,fb-clk = <0x1>;
			xlnx,qspi-clk-freq-hz = <0xbebc200>;
			xlnx,qspi-mode = <0x0>;
			#address-cells = <1>;
			#size-cells = <0>;
			flash@0 {
				compatible = "n25q128";
				reg = <0x0>;
				spi-max-frequency = <50000000>;
				#address-cells = <1>;
				#size-cells = <1>;
				partition@qspi-fsbl-uboot {
					label = "qspi-fsbl-uboot";
					reg = <0x0 0x100000>;
				};
				partition@qspi-linux {
					label = "qspi-linux";
					reg = <0x100000 0x500000>;
				};
				partition@qspi-device-tree {
					label = "qspi-device-tree";
					reg = <0x600000 0x20000>;
				};
				partition@qspi-rootfs {
					label = "qspi-rootfs";
					reg = <0x620000 0x590000>;
				};
				partition@qspi-data {
					label = "qspi-data";
					reg = <0xBB0000 0x50000>;
				};
				partition@qspi-bitstream {
					label = "qspi-bitstream";
					reg = <0xC00000 0x400000>;
				};
			};
		} ;

I added a partition named qspi-data of 320kB to handle some files I need during the normal execution.

I try to format the partition as a jffs2 type as follow:

zynq> flash_eraseall -j /dev/mtd4
Erasing 64 Kibyte @ 50000 - 100% complete.Cleanmarker written at 40000.

and it seems to work well.

Then I created a new folder to mount the new partition as follow

zynq> mkdir /tmp/data
zynq> mount -t jffs2 mtd4 /tmp/data
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x19ff instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x000c instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0xb0b1 instead

And I get this error. Anyway the partition is mounted and it seems to work. But if I create some file in the mounted partition as follow:

zynq> cd /tmp/data
zynq> touch file1.txt file2.txt

If I unmount and re-mount the partition, I get the following errors

zynq> umount /tmp/data
zynq> mount -t jffs2 mtd4 /tmp/data
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x19ff instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x000c instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0xb0b1 instead
jffs2: notice: (682) jffs2_get_inode_nodes: Node header CRC failed at 0x0200c8. {19ff,e001,00000031,4282d91d}
jffs2: notice: (682) jffs2_get_inode_nodes: Node header CRC failed at 0x020050. {1966,e001,00000031,4282d91d}
zynq> jffs2: notice: (683) jffs2_get_inode_nodes: Node header CRC failed at 0x02000c. {191d,e002,00000044,98f7fb1d}
jffs2: warning: (683) jffs2_do_read_inode_internal: no data nodes found for ino #2
jffs2: Returned error for crccheck of ino #2. Expect badness...
jffs2: notice: (683) jffs2_get_inode_nodes: Node header CRC failed at 0x020084. {1900,e002,00000044,98f7fb1d}
jffs2: warning: (683) jffs2_do_read_inode_internal: no data nodes found for ino #3
jffs2: Returned error for crccheck of ino #3. Expect badness...

I also tried to create a jffs2 image and write it into the /dev/mtd4 partition, as follow:

zynq> mkfs.jffs2 --pad --no-cleanmarkers -d /tmp/data -o rootfs.jffs2
zynq> nandwrite -p /dev/mtd4 rootfs.jffs2
Writing at 0x00000000
Writing at 0x00010000

And this time, if I unmount and re-mount the mtd4, it seems it works well, but if I restart the board, make a new directory /tmp/data I get the following:

zynq> mkdir /tmp/data
zynq> mount -t jffs2 mtd4 /tmp/data
jffs2: jffs2_scan_eraseblock(): Node at 0x00000000 {0x1985, 0x2001, 0x00000008) has invalid CRC 0x84021010 (calculated 0x26b486ed)
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x0008 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x1010 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x0001 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x8020 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0x4000 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000002c: 0x004b instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000030: 0x0041 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000034: 0x0040 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000038: 0x2660 instead
jffs2: Further such events for this erase block will not be printed
jffs2: Old JFFS2 bitmask found at 0x000000ec
jffs2: You cannot use older JFFS2 filesystems with newer kernels
jffs2: warning: (672) jffs2_sum_scan_sumnode: Summary node crc error, skipping summary information.
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x19e0 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x000c instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0xb0b1 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000200fc: 0x194b instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020100: 0x0044 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020104: 0xfb1d instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020108: 0x0004 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002010c: 0x0001 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020110: 0x81a4 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002011c: 0x034b instead
jffs2: Further such events for this erase block will not be printed
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x19ff instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x000c instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0xb0b1 instead
jffs2: notice: (672) jffs2_get_inode_nodes: Node header CRC failed at 0x020140. {19ff,e001,00000043,83b4b10a}
jffs2: notice: (672) jffs2_get_inode_nodes: Node header CRC failed at 0x0200c8. {1961,e001,00000031,4282d91d}
jffs2: notice: (672) jffs2_get_inode_nodes: Node header CRC failed at 0x020050. {1966,e001,00000031,4282d91d}
jffs2: notice: (672) jffs2_get_inode_nodes: Node header CRC failed at 0x00f3c4. {1907,e001,00000032,503776f3}
jffs2: notice: (672) jffs2_get_inode_nodes: Node header CRC failed at 0x00f0d4. {196d,e001,00000030,fa3ebe78}
jffs2: notice: (672) jffs2_get_inode_nodes: Node header CRC failed at 0x00f020. {1966,e001,00000032,503776f3}
jffs2: notice: (672) jffs2_get_inode_nodes: Node header CRC failed at 0x00ef38. {1980,e001,0000003f,a25dae2e}
zynq> jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x02000c. {1970,e002,00000044,98f7fb1d}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00e404. {1900,e002,00000611,60a9783f}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00ce60. {1991,e002,00000b1c,9a1b33b1}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00b808. {1912,e002,00000b12,7ac44482}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00a6cc. {1912,e002,00000814,5de9a507}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0096c4. {1900,e002,00000801,3a2e02aa}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x008f30. {1900,e002,00000792,9e870bdd}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x008720. {194e,e002,00000810,d28b3250}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x007f10. {19cc,e002,0000080f,daf17599}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x006f18. {1912,e002,00000801,3a2e02aa}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x005eb0. {1900,e002,0000081f,8ae82206}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0056b0. {1912,e002,000007fd,fdc2ec88}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x004840. {19b9,e002,00000740,12da7acf}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00415c. {1933,e002,000006e1,e6cf6e98}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0032b4. {1900,e002,00000734,f6874d04}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x002b5c. {1912,e002,00000758,877705bf}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x001f98. {1991,e002,000004c8,38715a42}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0018f8. {1912,e002,0000069f,6d2fb937}
jffs2: warning: (673) jffs2_do_read_inode_internal: no data nodes found for ino #2
jffs2: Returned error for crccheck of ino #2. Expect badness...
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x020084. {1900,e002,00000044,98f7fb1d}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00ef78. {1900,e002,000000a7,5c3d15cb}
jffs2: warning: (673) jffs2_do_read_inode_internal: no data nodes found for ino #3
jffs2: Returned error for crccheck of ino #3. Expect badness...
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x02e7a8. {1963,e002,00000b1c,9a1b33b1}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x02d150. {194b,e002,00000b12,7ac44482}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x02bf40. {19ce,e002,000008e5,6333d4c5}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x02af28. {194b,e002,00000802,289bad44}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x02a724. {1900,e002,00000801,3a2e02aa}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x029780. {1900,e002,00000810,d28b3250}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x028f70. {19cc,e002,0000080f,daf17599}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x02877c. {1900,e002,000007f3,1d1d9bbb}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x027790. {19a4,e002,000007e5,686f93f8}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x026728. {1906,e002,0000081f,8ae82206}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x025f28. {194b,e002,000007fd,fdc2ec88}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0250b8. {19b9,e002,00000740,12da7acf}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0249d4. {1900,e002,000006e1,e6cf6e98}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x023b2c. {1906,e002,00000734,f6874d04}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0233fc. {19f0,e002,0000072d,db965511}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0225a8. {1900,e002,000006f9,736211e8}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0220e0. {1900,e002,000004c8,38715a42}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x0210b8. {1906,e002,00000987,f3de817a}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x020908. {1943,e002,000007ae,247a4cc4}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x020184. {1900,e002,00000781,dc2bf3ac}
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00f054. {193d,e002,00000080,61d8824c}
jffs2: warning: (673) jffs2_do_read_inode_internal: no data nodes found for ino #4
jffs2: Returned error for crccheck of ino #4. Expect badness...
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00f104. {193c,e002,000002bf,ca14bed5}
jffs2: warning: (673) jffs2_do_read_inode_internal: no data nodes found for ino #5
jffs2: Returned error for crccheck of ino #5. Expect badness...
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00f3f8. {19ff,e002,000000a9,bce262f8}
jffs2: warning: (673) jffs2_do_read_inode_internal: no data nodes found for ino #6
jffs2: Returned error for crccheck of ino #6. Expect badness...
jffs2: notice: (673) jffs2_get_inode_nodes: Node header CRC failed at 0x00f4d8. {190f,e002,00000119,a0524655}
jffs2: warning: (673) jffs2_do_read_inode_internal: no data nodes found for ino #7
jffs2: Returned error for crccheck of ino #7. Expect badness...
jffs2: warning: (669) jffs2_get_inode_nodes: Eep. No valid nodes for ino #7.
jffs2: warning: (669) jffs2_do_read_inode_internal: no data nodes found for ino #7
jffs2: iget() failed for ino #7

and nothing exists in /tmp/data

Any suggestions?

Thank to all for any help!

0 Kudos
8 Replies
Voyager
Voyager
751 Views
Registered: ‎09-14-2016

Re: Creating and use jffs2 partition on MicroZed ZC702x

Hi @sconvertini,

 

Not sure but you should try with mtdblock instead of mtd:

 

#clean QSPI
#
flash_eraseall -j /dev/mtd4

#create a directory
#
mkdir /tmp/data

mount -t jffs2 /dev/mtdblock4 /tmp/data

cd /tmp/data
touch file1.txt /tmp/data/file2.txt

echo "this is a test" > file1.txt
echo "this is a test" > /tmp/data/file2.txt

# re-mount
# umount /tmp/data mount -t jffs2 /dev/mtdblock4 /tmp/data
# copy and compare files
# cp /tmp/data/file2.txt . dif file1.txt file.txt

 

Cheers,

Trigger

0 Kudos
Observer sconvertini
Observer
743 Views
Registered: ‎09-06-2018

Re: Creating and use jffs2 partition on MicroZed ZC702x

Hi,

thank you for you answer.

I cannot unmount /tmp/data. I goot this message

 

umount: can't unmount /var/volatile/tmp/data: Device or resource busy

 

even if a execut the sync command, the directory is busy.

Please, could you explain the last two rows command?

cp /tmp/data/file2.txt .
dif file1.txt file.txt

 Thank you

0 Kudos
Voyager
Voyager
735 Views
Registered: ‎09-14-2016

Re: Creating and use jffs2 partition on MicroZed ZC702x

Hi @sconvertini,

 

Try to mount in an other folder /mnt :

 

umount: can't unmount /var/volatile/tmp/data: Device or resource busy
#clean QSPI
#
flash_eraseall -j /dev/mtd4

#create a directory
#
mkdir /tmp/data

mount -t jffs2 /dev/mtdblock4 /mnt/qspi

cd /mnt/qspi
touch file1.txt /mnt/qspi/file2.txt

echo "this is a test" > file1.txt
echo "this is a test" > /mnt/qspi/file2.txt

# re-mount
#
umount  /mnt/qspi
mount -t jffs2 /dev/mtdblock4 /mnt/qspi

# copy and compare files
#
cp /mnt/qspi/file2.txt .

diff file1.txt file.txt


Diff is used to compare files.

 

Cheers,

Trigger

0 Kudos
Observer sconvertini
Observer
722 Views
Registered: ‎09-06-2018

Re: Creating and use jffs2 partition on MicroZed ZC702x

Dear Trigger,

I can mount and unmount jffs2 partition.

The problem is after rebboting the system.

If I attempt to mount the mtd4 partition in /tmp/data I get the following errors

 

zynq> mount -t jffs2 /dev/mtdblock4 /tmp/data
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x19ff instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x000c instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0xb0b1 instead

Bye

0 Kudos
Voyager
Voyager
700 Views
Registered: ‎09-14-2016

Re: Creating and use jffs2 partition on MicroZed ZC702x

HI @sconvertini,

 

 

Maybe you should take a look to CRC methodology and erase_block size

 

Cheers,

Trigger

 

0 Kudos
Moderator
Moderator
693 Views
Registered: ‎06-27-2017

Re: Creating and use jffs2 partition on MicroZed ZC702x

Hi @sconvertini,

 

Have you tried with Erase block size 8K? Also make sure that you have a valid rootfs in qspi-rootfs partition.

Can you share complete boot log?

 

Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.

Best Regards
Kranthi
--------------------------
Don't forget to reply, kudo, and accept as solution.
0 Kudos
Highlighted
Observer sconvertini
Observer
666 Views
Registered: ‎09-06-2018

Re: Creating and use jffs2 partition on MicroZed ZC702x

Hi, here is the boot log

SF: Detected s25fl128s_64k with page size 256 Bytes, erase size 64 KiB, total 16                                                                                  MiB
device 0 offset 0x520000, size 0xa80000
SF: 11010048 bytes @ 0x520000 Read: OK
## Loading kernel from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel@1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x10000104
     Data Size:    3937949 Bytes = 3.8 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x00008000
     Entry Point:  0x00008000
     Hash algo:    sha1
     Hash value:   b597f56be391623bb55e80149752110247342ba0
   Verifying Hash Integrity ... sha1+ OK
## Loading ramdisk from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Trying 'ramdisk@1' ramdisk subimage
     Description:  petalinux-user-image
     Type:         RAMDisk Image
     Compression:  gzip compressed
     Data Start:   0x103c59c4
     Data Size:    6028988 Bytes = 5.7 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: unavailable
     Entry Point:  unavailable
     Hash algo:    sha1
     Hash value:   d2e0f3caf9b6288297699b4c0d99ed129418b2d6
   Verifying Hash Integrity ... sha1+ OK
## Loading fdt from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Trying 'fdt@system-top.dtb' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x103c18a4
     Data Size:    16479 Bytes = 16.1 KiB
     Architecture: ARM
     Hash algo:    sha1
     Hash value:   af9c1d6b6a288d8d275727cd80c8540cdf792b05
   Verifying Hash Integrity ... sha1+ OK
   Booting using the fdt blob at 0x103c18a4
   Uncompressing Kernel Image ... OK
   Loading Ramdisk to 07a40000, end 07fffebc ... OK
   Loading Device Tree to 07a38000, end 07a3f05e ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.14.0-xilinx-v2018.2 (oe-user@oe-host) (gcc version 7.2.0 (GCC))                                                                                  #7 SMP PREEMPT Tue Oct 16 16:39:27 CEST 2018
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: xlnx,zynq-7000
bootconsole [earlycon0] enabled
Memory policy: Data cache writealloc
cma: Reserved 16 MiB at 0x3f000000
percpu: Embedded 16 pages/cpu @ef7cc000 s34764 r8192 d22580 u65536
Built 1 zonelists, mobility grouping on.  Total pages: 260608
Kernel command line: console=ttyPS0,115200 earlyprintk
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: 1006988K/1048576K available (6144K kernel code, 238K rwdata, 1560K rodat                                                                                 a, 1024K init, 153K bss, 25204K reserved, 16384K cma-reserved, 245760K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0700000   (7136 kB)
      .init : 0xc0900000 - 0xc0a00000   (1024 kB)
      .data : 0xc0a00000 - 0xc0a3b900   ( 239 kB)
       .bss : 0xc0a3b900 - 0xc0a61e44   ( 154 kB)
Preemptible hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
        Tasks RCU enabled.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
efuse mapped to f0802000
slcr mapped to f0804000
L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
L2C-310 erratum 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 1 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 512 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
zynq_clock_init: clkc starts at f0804100
Zynq clock init
sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025                                                                                 , max_idle_ns: 440795209040 ns
Switching to timer-based delay loop, resolution 3ns
clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 5375                                                                                 38477 ns
timer #0 at f080c000, irq=17
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 666.6                                                                                 6 BogoMIPS (lpj=3333333)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x100000 - 0x100060
Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
smp: Brought up 1 node, 2 CPUs
SMP: Total of 2 processors activated (1333.33 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
random: get_random_u32 called from bucket_table_alloc+0x1c4/0x204 with crng_init                                                                                 =0
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911                                                                                 2604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes)
pinctrl core: initialized pinctrl subsystem
random: fast init done
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 26, base_baud = 3125000) is a                                                                                  xuartps
`▒▒k▒▒▒▒[ttyPS0] enabled
console [ttyPS0] enabled
bootconsole [earlycon0] disabled
bootconsole [earlycon0] disabled
ERROR: could not get clock /amba_pl/gpio@41200000:s_axi_aclk(0)
xilinx-gpio 41200000.gpio: Input clock not found
xilinx-gpio: probe of 41200000.gpio failed with error -2
ERROR: could not get clock /amba_pl/gpio@41210000:s_axi_aclk(0)
xilinx-gpio 41210000.gpio: Input clock not found
xilinx-gpio: probe of 41210000.gpio failed with error -2
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
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@l                                                                                 inux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
FPGA manager framework
fpga-region fpga-full: FPGA Region probed
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 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: 5888K
hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
workingset: timestamp_bits=30 max_order=18 bucket_order=0
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Even                                                                                 ts-16
brd: module loaded
loop: module loaded
m25p80 spi0.0: found s25fl128s, expected n25q512a
m25p80 spi0.0: s25fl128s (16384 Kbytes)
4 ofpart partitions found on MTD device spi0.0
Creating 4 MTD partitions on "spi0.0":
0x000000000000-0x000000500000 : "boot"
0x000000500000-0x000000520000 : "bootenv"
0x000000520000-0x000000fa0000 : "kernel"
0x000000fa0000-0x000001000000 : "spare"
libphy: Fixed MDIO Bus: probed
CAN device driver interface
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 28 (00                                                                                 :0a:35:00:1e:53)
Marvell 88E1510 e000b000.ethernet-ffffffff:00: attached PHY driver [Marvell 88E1                                                                                 510] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:00, irq=POLL)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
i2c /dev entries driver
cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 23
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
cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f0988000 with timeout 10s
EDAC MC: ECC not enabled
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Registering SWP/SWPB emulation handler
hctosys: unable to open rtc device (rtc0)
of_cfs_init
of_cfs_init: OK
ALSA device list:
▒Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
Starting udev
udevd[733]: starting version 3.2.2
udevd[734]: starting eudev-3.2.2
hwclock: can't open '/dev/misc/rtc': No such file or directory
Tue Oct 16 14:40:21 UTC 2018
hwclock: can't open '/dev/misc/rtc': No such file or directory
Starting internet superserver: inetd.
Configuring packages on first boot....
 (This may take several minutes. Please do not power off the machine.)
Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
 Removing any system startup links for run-postinsts ...
  /etc/rcS.d/S99run-postinsts
INIT: Entering runlevel: 5
Configuring network interfaces... IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
done.
Starting Dropbear SSH server: Generating key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCbLnf9SA/6iZ+MALgWD7Zi+g/ogdQm5BvISpi6rYI3Z6/O3QCIQVEBHXCXgvljl6iLvTjjPE5c2OhlqheWaUFkxyvtVKHAdOPHr/oBWYm3EJQy4NbuA04W9kKXRHQSQuxAMZ96Kppm3m+VIA0PB9fQI0gltS7bNYw7LBzVZhH6oXHwB9mPDa+pX7jPhT6LCZ3BYu4Big7z1UP7jjWqpw06QB4P5vMV46cyHyLf1xJX2BVVZ01NdjzVD6aMAErsiNx+wC1qn/Pj5xaQziJ6Z54Uj4uxU3FpRBam7RVJvXzvGJoJwz+GD0YfJC2hFPojfCJll2JGiKZ3/6aVHT+lLofb root@AC2R
Fingerprint: md5 9a:27:ff:f2:ea:26:c1:e9:5c:e8:ad:53:59:7f:b9:03
dropbear.
hwclock: can't open '/dev/misc/rtc': No such file or directory
Starting syslogd/klogd: done
Starting tcf-agent: OK

PetaLinux 2018.2 AC2R /dev/ttyPS0

AC2R login: macb e000b000.ethernet eth0: link up (100/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

PetaLinux 2018.2 AC2R /dev/ttyPS0

AC2R login: root
Password:
0 Kudos
Observer sconvertini
Observer
665 Views
Registered: ‎09-06-2018

Re: Creating and use jffs2 partition on MicroZed ZC702x

Hi,

what is the complete command to erase the partition with a block size of 8k?

I usually use flash_eraseall.

Thank you

0 Kudos