OpenWrt Forum Archive

Topic: Openwrt for AT91SAM9x25 and AT91SAM9g25

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
i am trying to compile openwrt for at91sam9x25 (armdevs.com/Product/CORE9X25.html) , but im getting kernel panic error,,Please help me..
i followed steps to compile:
git clone github.com/openwrt/openwrt.git
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make V=s
cd bin/at91/
dd if=openwrt-at91-legacy-AT91SAM9G25EK-rootfs.tar.gz of=./rootfs.img
i followed steps to flash kernel:
LOAD LINUX KERNEL
-----------------
nand erase 0x200000 0x600000
tftp 0x22000000 openwrt-at91-legacy-9x25ek-uImage
nand write 0x22000000 0x200000 <size>
/****************************************************************************************/
LOAD LINUX FILESYSTEM
---------------------
nand erase 0x800000 0xF800000
tftp 0x20000000 rootfs.img
nand write.trimffs 0x20000000 0x800000 <size>
/****************************************************************************************/
LOAD DTB
--------
nand erase 0x180000 0x80000
tftp 0x21000000 at91sam9g25ek.dtb
nand write 0x21000000 0x180000 <size>
---------------------
Please help me any one..

(Last edited by tganeshg8 on 22 Feb 2017, 06:10)

Please guys.. Anyone help me...

It looks like you flashed the tar.gz of the rootfs image without unzipping it.  dd does not unzip or otherwise modify data.  It just copies it.

In menuconfig -- Target Images there is an option to leave the image uncompressed, which is good if you're just going to flash it immediately.  The image file will be large, because all the empty space set aside in the filesystem remains as empty space.  This is how you must flash it though.

(Last edited by mk24 on 21 Feb 2017, 14:56)

thank you .. mk24...

This my error Log:


U-Boot 2012.10-svn283 (Jun 25 2014 - 19:41:41)

CPU: AT91SAM9G25
Crystal frequency:       12 MHz
CPU clock        :      400 MHz
Master clock     :  133.333 MHz
I2C:   ready
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
MMC:   mci: 0
In:    serial
Out:   serial
Err:   serial
EEPROM: Invalid ID (00 00 00 00)
Net:   macb0
USB:   scanning bus for devices... 1 USB Device(s) found
0 Storage Device(s) found
USB upgrade initialize USB failed.
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x180000, size 0x80000
 524288 bytes read: OK

NAND read: device 0 offset 0x200000, size 0x600000
Skipping bad block 0x004c0000
 6291456 bytes read: OK
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   OpenWrt ARM 4.4.14
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1557815 Bytes = 1.5 MiB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 21000000
   Booting using the fdt blob at 0x21000000
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 27ddd000, end 27de6a36 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.14 (ganesh@hpTestPc) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 50104) ) #4 Wed Feb 22 04:31:41 UTC 2017
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Atmel AT91SAM9G25-EK
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 124848K/131072K available (3258K kernel code, 106K rwdata, 1184K rodata, 156K init, 194K bss, 6224K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc045edb4   (4444 kB)
[    0.000000]       .init : 0xc045f000 - 0xc0486000   ( 156 kB)
[    0.000000]       .data : 0xc0486000 - 0xc04a08f0   ( 107 kB)
[    0.000000]        .bss : 0xc04a08f0 - 0xc04d1124   ( 195 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: pit: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 14334453866 ns
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.070000] Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] CPU: Testing write buffer coherency: ok
[    0.070000] Setting up static identity map for 0x20008400 - 0x2000843c
[    0.100000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100000] pinctrl core: initialized pinctrl subsystem
[    0.100000] NET: Registered protocol family 16
[    0.100000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100000] AT91: Detected SoC family: at91sam9x5
[    0.100000] AT91: Detected SoC: at91sam9g25, revision 1
[    0.120000] gpio-at91 fffff400.gpio: at address c8852400
[    0.120000] gpio-at91 fffff600.gpio: at address c8854600
[    0.120000] gpio-at91 fffff800.gpio: at address c8856800
[    0.120000] gpio-at91 fffffa00.gpio: at address c8858a00
[    0.130000] pinctrl-at91 ahb:apb:pinctrl@fffff400: initialized AT91 pinctrl driver
[    0.610000] clocksource: Switched to clocksource pit
[    0.610000] NET: Registered protocol family 2
[    0.610000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.610000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.610000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.610000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.610000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.610000] NET: Registered protocol family 1
[    0.620000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.670000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.670000] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.680000] io scheduler noop registered
[    0.680000] io scheduler deadline registered (default)
[    0.680000] fffff200.serial: ttyS0 at MMIO 0xfffff200 (irq = 16, base_baud = 8333333) is a ATMEL_SERIAL
[    1.030000] console [ttyS0] enabled
[    1.040000] f801c000.serial: ttyS1 at MMIO 0xf801c000 (irq = 30, base_baud = 8333333) is a ATMEL_SERIAL
[    1.060000] atmel_nand 40000000.nand: Use On Flash BBT
[    1.060000] atmel_nand 40000000.nand: Failed to request DMA channel
[    1.070000] atmel_nand 40000000.nand: No DMA support for NAND access.
[    1.080000] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[    1.080000] nand: Samsung NAND 256MiB 3,3V 8-bit
[    1.090000] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.100000] atmel_nand 40000000.nand: can't detect min. ECC, assume 2 bits in 512 bytes
[    1.100000] atmel_nand 40000000.nand: Initialize PMECC params, cap: 2, sector: 512
[    1.120000] Bad block table not found for chip 0
[    1.120000] Bad block table not found for chip 0
[    1.130000] Scanning device for bad blocks
[    1.130000] Bad eraseblock 38 at 0x0000004c0000
[    1.150000] Bad eraseblock 175 at 0x0000015e0000
[    1.170000] Bad eraseblock 330 at 0x000002940000
[    1.180000] Bad eraseblock 463 at 0x0000039e0000
[    1.220000] Bad eraseblock 764 at 0x000005f80000
[    1.230000] Bad eraseblock 851 at 0x000006a60000
[    1.270000] Bad eraseblock 1274 at 0x000009f40000
[    1.320000] Bad eraseblock 1810 at 0x00000e240000
[    1.340000] Bad eraseblock 1952 at 0x00000f400000
[    1.350000] Bad block table written to 0x00000ffe0000, version 0x01
[    1.360000] Bad block table written to 0x00000ffc0000, version 0x01
[    1.370000] 5 ofpart partitions found on MTD device atmel_nand
[    1.370000] Creating 5 MTD partitions on "atmel_nand":
[    1.380000] 0x000000000000-0x000000040000 : "at91bootstrap"
[    1.390000] 0x000000040000-0x0000000c0000 : "u-boot"
[    1.400000] 0x0000000c0000-0x000000200000 : "U-Boot Env"
[    1.410000] 0x000000200000-0x000000800000 : "kernel"
[    1.420000] 0x000000800000-0x000020000000 : "rootfs"
[    1.420000] mtd: partition "rootfs" extends beyond the end of device "atmel_nand" -- size truncated to 0xf800000
[    1.440000] mtd: device 4 (rootfs) set to be root filesystem
[    1.440000] mtdsplit: no squashfs found in "rootfs"
[    1.450000] libphy: MACB_mii_bus: probed
[    1.470000] macb f802c000.ethernet eth0: Cadence MACB rev 0x0001010c at 0xf802c000 irq 35 (f6:bc:f7:4b:79:08)
[    1.480000] macb f802c000.ethernet eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=f802c000.etherne:01, irq=-1)
[    1.490000] AT91: Starting after software reset
[    1.500000] at91sam9_wdt: enabled (heartbeat=15 sec, nowayout=0)
[    1.500000] atmel_mci f0008000.mmc: version: 0x504
[    1.510000] atmel_mci f0008000.mmc: using PIO
[    1.510000] atmel_mci f0008000.mmc: No vmmc regulator found
[    1.520000] atmel_mci f0008000.mmc: No vqmmc regulator found
[    1.560000] atmel_mci f0008000.mmc: Atmel MCI controller at 0xf0008000 irq 29, 1 slots
[    1.570000] NET: Registered protocol family 10
[    1.580000] NET: Registered protocol family 17
[    1.580000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.600000] 8021q: 802.1Q VLAN Support v1.8
[    1.610000] ubi0: attaching mtd1
[    1.610000] ubi0: scanning is finished
[    1.620000] ubi0 error: ubi_read_volume_table: the layout volume was not found
[    1.620000] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22
[    1.630000] UBI error: cannot attach mtd1
[    1.630000] hctosys: unable to open rtc device (rtc0)
[    1.650000] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(31,4): error -19
[    1.660000] Please append a correct "root=" boot option; here are the available partitions:
[    1.660000] 1f00             256 mtdblock0  (driver?)
[    1.670000] 1f01             512 mtdblock1  (driver?)
[    1.670000] 1f02            1280 mtdblock2  (driver?)
[    1.680000] 1f03            6144 mtdblock3  (driver?)
[    1.680000] 1f04          253952 mtdblock4  (driver?)
[    1.690000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,4)
[    1.690000] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.14 #4
[    1.690000] Hardware name: Atmel AT91SAM9
[    1.690000] Backtrace:
[    1.690000] [<c0015fc0>] (dump_backtrace) from [<c00161bc>] (show_stack+0x18/0x1c)
[    1.690000]  r7:c047b858 r6:c7ab5000 r5:ffffffed r4:c7ab5000
[    1.690000] [<c00161a4>] (show_stack) from [<c01a6aa4>] (dump_stack+0x20/0x28)
[    1.690000] [<c01a6a84>] (dump_stack) from [<c001c94c>] (panic+0x84/0x1f0)
[    1.690000] [<c001c8cc>] (panic) from [<c0460314>] (mount_block_root+0x20c/0x270)
[    1.690000]  r3:5c96b434 r2:5c96b434 r1:c7831eec r0:c03e4892
[    1.690000]  r7:c047b858
[    1.690000] [<c0460108>] (mount_block_root) from [<c04604f8>] (prepare_namespace+0x94/0x184)
[    1.690000]  r10:00000000 r9:c04a0910 r8:c04a0918 r7:c0484968 r6:c047b834 r5:c047b858
[    1.690000]  r4:c047b868
[    1.690000] [<c0460464>] (prepare_namespace) from [<c045fe8c>] (kernel_init_freeable+0x184/0x1d8)
[    1.690000]  r5:00000027 r4:00000008
[    1.690000] [<c045fd08>] (kernel_init_freeable) from [<c000e59c>] (kernel_init+0x10/0x104)
[    1.690000]  r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c000e58c r4:00000000
[    1.690000] [<c000e58c>] (kernel_init) from [<c00095b0>] (ret_from_fork+0x14/0x24)
[    1.690000]  r5:c000e58c r4:00000000
[    1.690000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,4)
---------------------------------------------------------------------------------------------------------------------------------------

Target Images -->

it showing this options:
x x
                                                 [ ] ramdisk  ----                                                                                                 x x
  x x                                               *** Root filesystem archives ***                                                                              x x
  x x                                           [ ] cpio.gz                                                                                                       x x
  x x                                           * tar.gz                                                                                                        x x
  x x                                               *** Root filesystem images ***                                                                                x x
  x x                                           [ ] ext4  ----                                                                                                    x x
  x x                                           [ ] jffs2                                                                                                         x x
  x x                                           * squashfs  --->                                                                                                x x
  x x                                           * ubifs  --->                                                                                                   x x
  x x                                               *** Image Options ***                                                                                         x x
  x x                                           [ ] Build dataflashboot loader                                                                                    x x
  x x                                           [ ] Build U-Boot bootloader                                                                                       x x
  x x                                           [ ] Include kernel in root filesystem  ----                                                                       x x
  x x                                           [ ] Include DTB in root filesystem 

please help to identify the option which you were suggested ...

Please help me guys...

(Last edited by tganeshg8 on 28 Feb 2017, 04:34)

Start with tar -xaf ...rootfs.tar.gz on your build system, this should result in an uncompressed file which is a true image of the root filesystem.  Flash that into the root partition.

@mk24 : tar -xaf ...rootfs.tar.gz its just unzipping directly what ...rootfs.tar.gz  having...
its not giving image file
... Please help

Realize that I put dots rather than the whole file name.  You would use the whole file name.

If you add a v to the options (tar -xvaf), tar will tell you which files it extracted.

I did following step as per your instructions..


ganesh@hpTestPc:~/SAM9G25/Openwrt/OpwnWrtWLUCI/openwrt/bin/at91$ mkdir rootfs
ganesh@hpTestPc:~/SAM9G25/Openwrt/OpwnWrtWLUCI/openwrt/bin/at91$ tar -xvaf openwrt-at91-legacy-at91sam9g25ek-rootfs.tar.gz -C ./rootfs/
./
./bin/
./bin/ash
./bin/board_detect
./bin/busybox
./bin/cat
./bin/chgrp
./bin/chmod
./bin/chown
./bin/config_generate
./bin/cp
./bin/date
./bin/dd
./bin/df
./bin/dmesg
./bin/echo
./bin/egrep
./bin/false
./bin/fgrep
./bin/fsync
./bin/grep
./bin/gunzip
./bin/gzip
./bin/ipcalc.sh
./bin/kill
./bin/ln
./bin/lock
./bin/login
./bin/ls
./bin/mkdir
./bin/mknod
./bin/mktemp
./bin/mount
./bin/mv
./bin/netmsg
./bin/netstat
./bin/nice
./bin/opkg
./bin/pidof
./bin/ping
./bin/ping6
./bin/ps
./bin/pwd
./bin/rm
./bin/rmdir
./bin/sed
./bin/sh
./bin/sleep
./bin/sync
./bin/tar
./bin/touch
./bin/true
./bin/ubus
./bin/uclient-fetch
./bin/umount
./bin/uname
./bin/vi
./bin/wget
./bin/zcat
./dev/
./etc/
./etc/TZ
./etc/banner
./etc/banner.failsafe
./etc/board.d/
./etc/board.d/02_network
./etc/board.d/99-default_network
./etc/config/
./etc/config/dhcp
./etc/config/dropbear
./etc/config/firewall
./etc/config/network
./etc/config/system
./etc/crontabs/
./etc/device_info
./etc/diag.sh
./etc/dnsmasq.conf
./etc/dropbear/
./etc/dropbear/dropbear_rsa_host_key
./etc/firewall.user
./etc/fstab
./etc/group
./etc/hosts
./etc/hotplug-preinit.json
./etc/hotplug.d/
./etc/hotplug.d/iface/
./etc/hotplug.d/iface/00-netstate
./etc/hotplug.d/iface/20-firewall
./etc/hotplug.d/iface/25-dnsmasq
./etc/hotplug.d/net/
./etc/hotplug.d/net/00-sysctl
./etc/hotplug.json
./etc/init.d/
./etc/init.d/boot
./etc/init.d/cron
./etc/init.d/dnsmasq
./etc/init.d/done
./etc/init.d/dropbear
./etc/init.d/firewall
./etc/init.d/gpio_switch
./etc/init.d/led
./etc/init.d/log
./etc/init.d/network
./etc/init.d/odhcpd
./etc/init.d/sysctl
./etc/init.d/sysfixtime
./etc/init.d/sysntpd
./etc/init.d/system
./etc/init.d/umount
./etc/inittab
./etc/iproute2/
./etc/iproute2/rt_tables
./etc/localtime
./etc/modules-boot.d/
./etc/modules-boot.d/20-usb-core
./etc/modules-boot.d/50-usb-ohci
./etc/modules.d/
./etc/modules.d/20-usb-core
./etc/modules.d/21-regmap
./etc/modules.d/30-fs-configfs
./etc/modules.d/42-ip6tables
./etc/modules.d/45-usb-gadget
./etc/modules.d/50-usb-lib-composite
./etc/modules.d/50-usb-ohci
./etc/modules.d/51-at91-udc
./etc/modules.d/51-i2c-core
./etc/modules.d/52-usb-eth-gadget
./etc/modules.d/ipt-conntrack
./etc/modules.d/ipt-core
./etc/modules.d/ipt-nat
./etc/modules.d/lib-crc-ccitt
./etc/modules.d/lib-lzo
./etc/modules.d/nf-conntrack
./etc/modules.d/nf-conntrack6
./etc/modules.d/nf-ipt
./etc/modules.d/nf-ipt6
./etc/modules.d/nf-nat
./etc/modules.d/ppp
./etc/modules.d/pppoe
./etc/mtab
./etc/openwrt_release
./etc/openwrt_version
./etc/opkg/
./etc/opkg/customfeeds.conf
./etc/opkg/distfeeds.conf
./etc/opkg/keys/
./etc/opkg/keys/af22f7a88858c8e9
./etc/opkg/keys/af47f147de8e6a33
./etc/opkg.conf
./etc/passwd
./etc/ppp/
./etc/ppp/chap-secrets
./etc/ppp/filter
./etc/ppp/options
./etc/ppp/resolv.conf
./etc/preinit
./etc/profile
./etc/protocols
./etc/rc.button/
./etc/rc.button/failsafe
./etc/rc.button/power
./etc/rc.button/reset
./etc/rc.button/rfkill
./etc/rc.common
./etc/rc.d/
./etc/rc.d/K10gpio_switch
./etc/rc.d/K50dropbear
./etc/rc.d/K85odhcpd
./etc/rc.d/K89log
./etc/rc.d/K90network
./etc/rc.d/K90sysfixtime
./etc/rc.d/K98boot
./etc/rc.d/K99umount
./etc/rc.d/S00sysfixtime
./etc/rc.d/S10boot
./etc/rc.d/S10system
./etc/rc.d/S11sysctl
./etc/rc.d/S12log
./etc/rc.d/S19firewall
./etc/rc.d/S20network
./etc/rc.d/S35odhcpd
./etc/rc.d/S50cron
./etc/rc.d/S50dropbear
./etc/rc.d/S60dnsmasq
./etc/rc.d/S95done
./etc/rc.d/S96led
./etc/rc.d/S98gpio_switch
./etc/rc.d/S98sysntpd
./etc/rc.local
./etc/resolv.conf
./etc/services
./etc/shadow
./etc/shells
./etc/sysctl.conf
./etc/sysctl.d/
./etc/sysctl.d/local.conf
./etc/sysupgrade.conf
./etc/uci-defaults/
./etc/uci-defaults/10_migrate-shadow
./etc/uci-defaults/11_migrate-sysctl
./etc/uci-defaults/12_network-generate-ula
./etc/uci-defaults/13_fix_group_user
./etc/uci-defaults/20_migrate-feeds
./etc/uci-defaults/odhcpd.defaults
./lib/
./lib/at91.sh
./lib/config/
./lib/config/uci.sh
./lib/firmware/
./lib/functions/
./lib/functions/leds.sh
./lib/functions/network.sh
./lib/functions/preinit.sh
./lib/functions/procd.sh
./lib/functions/service.sh
./lib/functions/system.sh
./lib/functions/uci-defaults.sh
./lib/functions.sh
./lib/ld-musl-arm.so.1
./lib/libblobmsg_json.so
./lib/libc.so
./lib/libfstools.so
./lib/libgcc_s.so.1
./lib/libjson_script.so
./lib/libsetlbf.so
./lib/libubox.so
./lib/libubus.so
./lib/libuci.so
./lib/libvalidate.so
./lib/modules/
./lib/modules/4.4.14/
./lib/modules/4.4.14/at91_udc.ko
./lib/modules/4.4.14/crc-ccitt.ko
./lib/modules/4.4.14/g_ether.ko
./lib/modules/4.4.14/i2c-core.ko
./lib/modules/4.4.14/i2c-dev.ko
./lib/modules/4.4.14/ip6_tables.ko
./lib/modules/4.4.14/ip6t_REJECT.ko
./lib/modules/4.4.14/ip6table_filter.ko
./lib/modules/4.4.14/ip6table_mangle.ko
./lib/modules/4.4.14/ip6table_raw.ko
./lib/modules/4.4.14/ip_tables.ko
./lib/modules/4.4.14/ipt_MASQUERADE.ko
./lib/modules/4.4.14/ipt_REJECT.ko
./lib/modules/4.4.14/iptable_filter.ko
./lib/modules/4.4.14/iptable_mangle.ko
./lib/modules/4.4.14/iptable_nat.ko
./lib/modules/4.4.14/iptable_raw.ko
./lib/modules/4.4.14/libcomposite.ko
./lib/modules/4.4.14/nf_conntrack.ko
./lib/modules/4.4.14/nf_conntrack_ipv4.ko
./lib/modules/4.4.14/nf_conntrack_ipv6.ko
./lib/modules/4.4.14/nf_conntrack_rtcache.ko
./lib/modules/4.4.14/nf_defrag_ipv4.ko
./lib/modules/4.4.14/nf_defrag_ipv6.ko
./lib/modules/4.4.14/nf_log_common.ko
./lib/modules/4.4.14/nf_log_ipv4.ko
./lib/modules/4.4.14/nf_log_ipv6.ko
./lib/modules/4.4.14/nf_nat.ko
./lib/modules/4.4.14/nf_nat_ipv4.ko
./lib/modules/4.4.14/nf_nat_masquerade_ipv4.ko
./lib/modules/4.4.14/nf_nat_redirect.ko
./lib/modules/4.4.14/nf_reject_ipv4.ko
./lib/modules/4.4.14/nf_reject_ipv6.ko
./lib/modules/4.4.14/ohci-at91.ko
./lib/modules/4.4.14/ohci-hcd.ko
./lib/modules/4.4.14/ohci-platform.ko
./lib/modules/4.4.14/ppp_async.ko
./lib/modules/4.4.14/ppp_generic.ko
./lib/modules/4.4.14/pppoe.ko
./lib/modules/4.4.14/pppox.ko
./lib/modules/4.4.14/regmap-core.ko
./lib/modules/4.4.14/regmap-i2c.ko
./lib/modules/4.4.14/regmap-mmio.ko
./lib/modules/4.4.14/regmap-spi.ko
./lib/modules/4.4.14/slhc.ko
./lib/modules/4.4.14/u_ether.ko
./lib/modules/4.4.14/udc-core.ko
./lib/modules/4.4.14/usb-common.ko
./lib/modules/4.4.14/usb_f_ecm.ko
./lib/modules/4.4.14/usb_f_ecm_subset.ko
./lib/modules/4.4.14/usb_f_rndis.ko
./lib/modules/4.4.14/usbcore.ko
./lib/modules/4.4.14/x_tables.ko
./lib/modules/4.4.14/xt_CT.ko
./lib/modules/4.4.14/xt_LOG.ko
./lib/modules/4.4.14/xt_REDIRECT.ko
./lib/modules/4.4.14/xt_TCPMSS.ko
./lib/modules/4.4.14/xt_comment.ko
./lib/modules/4.4.14/xt_conntrack.ko
./lib/modules/4.4.14/xt_limit.ko
./lib/modules/4.4.14/xt_mac.ko
./lib/modules/4.4.14/xt_mark.ko
./lib/modules/4.4.14/xt_multiport.ko
./lib/modules/4.4.14/xt_nat.ko
./lib/modules/4.4.14/xt_state.ko
./lib/modules/4.4.14/xt_tcpudp.ko
./lib/modules/4.4.14/xt_time.ko
./lib/netifd/
./lib/netifd/dhcp.script
./lib/netifd/dhcpv6.script
./lib/netifd/netifd-proto.sh
./lib/netifd/netifd-wireless.sh
./lib/netifd/ppp-down
./lib/netifd/ppp-up
./lib/netifd/proto/
./lib/netifd/proto/dhcp.sh
./lib/netifd/proto/dhcpv6.sh
./lib/netifd/proto/ppp.sh
./lib/netifd/utils.sh
./lib/network/
./lib/network/config.sh
./lib/preinit/
./lib/preinit/02_default_set_state
./lib/preinit/03_preinit_do_at91.sh
./lib/preinit/10_indicate_failsafe
./lib/preinit/10_indicate_preinit
./lib/preinit/10_sysinfo
./lib/preinit/30_failsafe_wait
./lib/preinit/40_run_failsafe_hook
./lib/preinit/50_indicate_regular_preinit
./lib/preinit/70_initramfs_test
./lib/preinit/80_mount_root
./lib/preinit/99_10_failsafe_login
./lib/preinit/99_10_run_init
./lib/upgrade/
./lib/upgrade/common.sh
./lib/upgrade/keep.d/
./lib/upgrade/keep.d/base-files
./lib/upgrade/keep.d/base-files-essential
./lib/upgrade/keep.d/opkg
./lib/upgrade/keep.d/ppp
./lib/upgrade/nand.sh
./mnt/
./overlay/
./proc/
./rom/
./rom/note
./root/
./sbin/
./sbin/askfirst
./sbin/devstatus
./sbin/firstboot
./sbin/fw3
./sbin/halt
./sbin/hotplug-call
./sbin/hwclock
./sbin/ifconfig
./sbin/ifdown
./sbin/ifstatus
./sbin/ifup
./sbin/init
./sbin/ip
./sbin/jffs2mark
./sbin/jffs2reset
./sbin/kmodloader
./sbin/led.sh
./sbin/logd
./sbin/logread
./sbin/mkswap
./sbin/mount_root
./sbin/mtd
./sbin/netifd
./sbin/pivot_root
./sbin/poweroff
./sbin/procd
./sbin/reboot
./sbin/reload_config
./sbin/route
./sbin/snapshot
./sbin/snapshot_tool
./sbin/start-stop-daemon
./sbin/switch_root
./sbin/sysctl
./sbin/sysupgrade
./sbin/ubusd
./sbin/uci
./sbin/udevtrigger
./sbin/udhcpc
./sbin/upgraded
./sbin/validate_data
./sbin/wifi
./sys/
./tmp/
./usr/
./usr/bin/
./usr/bin/[
./usr/bin/[[
./usr/bin/awk
./usr/bin/basename
./usr/bin/bunzip2
./usr/bin/bzcat
./usr/bin/clear
./usr/bin/cmp
./usr/bin/crontab
./usr/bin/cut
./usr/bin/dbclient
./usr/bin/dirname
./usr/bin/dropbearkey
./usr/bin/du
./usr/bin/env
./usr/bin/expr
./usr/bin/find
./usr/bin/free
./usr/bin/getrandom
./usr/bin/head
./usr/bin/hexdump
./usr/bin/id
./usr/bin/jshn
./usr/bin/jsonfilter
./usr/bin/killall
./usr/bin/ldd
./usr/bin/less
./usr/bin/logger
./usr/bin/md5sum
./usr/bin/mkfifo
./usr/bin/nc
./usr/bin/nslookup
./usr/bin/passwd
./usr/bin/pgrep
./usr/bin/printf
./usr/bin/readlink
./usr/bin/reset
./usr/bin/scp
./usr/bin/seq
./usr/bin/signify
./usr/bin/sort
./usr/bin/ssh
./usr/bin/strings
./usr/bin/tail
./usr/bin/tee
./usr/bin/test
./usr/bin/time
./usr/bin/top
./usr/bin/tr
./usr/bin/traceroute
./usr/bin/traceroute6
./usr/bin/uniq
./usr/bin/uptime
./usr/bin/usign
./usr/bin/wc
./usr/bin/which
./usr/bin/xargs
./usr/bin/yes
./usr/lib/
./usr/lib/iptables/
./usr/lib/libip4tc.so
./usr/lib/libip4tc.so.0
./usr/lib/libip4tc.so.0.1.0
./usr/lib/libip6tc.so
./usr/lib/libip6tc.so.0
./usr/lib/libip6tc.so.0.1.0
./usr/lib/libiptext.so
./usr/lib/libiptext4.so
./usr/lib/libiptext6.so
./usr/lib/libjson-c.so.2
./usr/lib/libjson-c.so.2.0.1
./usr/lib/libnl-tiny.so
./usr/lib/libuclient.so
./usr/lib/libxtables.so
./usr/lib/libxtables.so.10
./usr/lib/libxtables.so.10.0.0
./usr/lib/opkg/
./usr/lib/opkg/info/
./usr/lib/opkg/info/base-files.conffiles
./usr/lib/opkg/info/base-files.control
./usr/lib/opkg/info/base-files.list
./usr/lib/opkg/info/busybox.control
./usr/lib/opkg/info/busybox.list
./usr/lib/opkg/info/dnsmasq.conffiles
./usr/lib/opkg/info/dnsmasq.control
./usr/lib/opkg/info/dnsmasq.list
./usr/lib/opkg/info/dropbear.conffiles
./usr/lib/opkg/info/dropbear.control
./usr/lib/opkg/info/dropbear.list
./usr/lib/opkg/info/firewall.conffiles
./usr/lib/opkg/info/firewall.control
./usr/lib/opkg/info/firewall.list
./usr/lib/opkg/info/fstools.control
./usr/lib/opkg/info/fstools.list
./usr/lib/opkg/info/ip6tables.control
./usr/lib/opkg/info/ip6tables.list
./usr/lib/opkg/info/iptables.control
./usr/lib/opkg/info/iptables.list
./usr/lib/opkg/info/jshn.control
./usr/lib/opkg/info/jshn.list
./usr/lib/opkg/info/jsonfilter.control
./usr/lib/opkg/info/jsonfilter.list
./usr/lib/opkg/info/kernel.control
./usr/lib/opkg/info/kernel.list
./usr/lib/opkg/info/kmod-at91-udc.control
./usr/lib/opkg/info/kmod-at91-udc.list
./usr/lib/opkg/info/kmod-fs-configfs.control
./usr/lib/opkg/info/kmod-fs-configfs.list
./usr/lib/opkg/info/kmod-i2c-core.control
./usr/lib/opkg/info/kmod-i2c-core.list
./usr/lib/opkg/info/kmod-ip6tables.control
./usr/lib/opkg/info/kmod-ip6tables.list
./usr/lib/opkg/info/kmod-ipt-conntrack.control
./usr/lib/opkg/info/kmod-ipt-conntrack.list
./usr/lib/opkg/info/kmod-ipt-core.control
./usr/lib/opkg/info/kmod-ipt-core.list
./usr/lib/opkg/info/kmod-ipt-nat.control
./usr/lib/opkg/info/kmod-ipt-nat.list
./usr/lib/opkg/info/kmod-lib-crc-ccitt.control
./usr/lib/opkg/info/kmod-lib-crc-ccitt.list
./usr/lib/opkg/info/kmod-lib-lzo.control
./usr/lib/opkg/info/kmod-lib-lzo.list
./usr/lib/opkg/info/kmod-nf-conntrack.control
./usr/lib/opkg/info/kmod-nf-conntrack.list
./usr/lib/opkg/info/kmod-nf-conntrack6.control
./usr/lib/opkg/info/kmod-nf-conntrack6.list
./usr/lib/opkg/info/kmod-nf-ipt.control
./usr/lib/opkg/info/kmod-nf-ipt.list
./usr/lib/opkg/info/kmod-nf-ipt6.control
./usr/lib/opkg/info/kmod-nf-ipt6.list
./usr/lib/opkg/info/kmod-nf-nat.control
./usr/lib/opkg/info/kmod-nf-nat.list
./usr/lib/opkg/info/kmod-nls-base.control
./usr/lib/opkg/info/kmod-nls-base.list
./usr/lib/opkg/info/kmod-ppp.control
./usr/lib/opkg/info/kmod-ppp.list
./usr/lib/opkg/info/kmod-pppoe.control
./usr/lib/opkg/info/kmod-pppoe.list
./usr/lib/opkg/info/kmod-pppox.control
./usr/lib/opkg/info/kmod-pppox.list
./usr/lib/opkg/info/kmod-regmap.control
./usr/lib/opkg/info/kmod-regmap.list
./usr/lib/opkg/info/kmod-slhc.control
./usr/lib/opkg/info/kmod-slhc.list
./usr/lib/opkg/info/kmod-usb-core.control
./usr/lib/opkg/info/kmod-usb-core.list
./usr/lib/opkg/info/kmod-usb-eth-gadget.control
./usr/lib/opkg/info/kmod-usb-eth-gadget.list
./usr/lib/opkg/info/kmod-usb-gadget.control
./usr/lib/opkg/info/kmod-usb-gadget.list
./usr/lib/opkg/info/kmod-usb-lib-composite.control
./usr/lib/opkg/info/kmod-usb-lib-composite.list
./usr/lib/opkg/info/kmod-usb-ohci.control
./usr/lib/opkg/info/kmod-usb-ohci.list
./usr/lib/opkg/info/libblobmsg-json.control
./usr/lib/opkg/info/libblobmsg-json.list
./usr/lib/opkg/info/libc.control
./usr/lib/opkg/info/libc.list
./usr/lib/opkg/info/libgcc.control
./usr/lib/opkg/info/libgcc.list
./usr/lib/opkg/info/libip4tc.control
./usr/lib/opkg/info/libip4tc.list
./usr/lib/opkg/info/libip6tc.control
./usr/lib/opkg/info/libip6tc.list
./usr/lib/opkg/info/libjson-c.control
./usr/lib/opkg/info/libjson-c.list
./usr/lib/opkg/info/libjson-script.control
./usr/lib/opkg/info/libjson-script.list
./usr/lib/opkg/info/libnl-tiny.control
./usr/lib/opkg/info/libnl-tiny.list
./usr/lib/opkg/info/libubox.control
./usr/lib/opkg/info/libubox.list
./usr/lib/opkg/info/libubus.control
./usr/lib/opkg/info/libubus.list
./usr/lib/opkg/info/libuci.control
./usr/lib/opkg/info/libuci.list
./usr/lib/opkg/info/libuclient.control
./usr/lib/opkg/info/libuclient.list
./usr/lib/opkg/info/libxtables.control
./usr/lib/opkg/info/libxtables.list
./usr/lib/opkg/info/logd.control
./usr/lib/opkg/info/logd.list
./usr/lib/opkg/info/mtd.control
./usr/lib/opkg/info/mtd.list
./usr/lib/opkg/info/netifd.control
./usr/lib/opkg/info/netifd.list
./usr/lib/opkg/info/odhcp6c.control
./usr/lib/opkg/info/odhcp6c.list
./usr/lib/opkg/info/odhcpd.control
./usr/lib/opkg/info/odhcpd.list
./usr/lib/opkg/info/opkg.conffiles
./usr/lib/opkg/info/opkg.control
./usr/lib/opkg/info/opkg.list
./usr/lib/opkg/info/ppp-mod-pppoe.control
./usr/lib/opkg/info/ppp-mod-pppoe.list
./usr/lib/opkg/info/ppp.conffiles
./usr/lib/opkg/info/ppp.control
./usr/lib/opkg/info/ppp.list
./usr/lib/opkg/info/procd-nand.control
./usr/lib/opkg/info/procd-nand.list
./usr/lib/opkg/info/procd.control
./usr/lib/opkg/info/procd.list
./usr/lib/opkg/info/ubi-utils.control
./usr/lib/opkg/info/ubi-utils.list
./usr/lib/opkg/info/ubox.control
./usr/lib/opkg/info/ubox.list
./usr/lib/opkg/info/ubus.control
./usr/lib/opkg/info/ubus.list
./usr/lib/opkg/info/ubusd.control
./usr/lib/opkg/info/ubusd.list
./usr/lib/opkg/info/uci.control
./usr/lib/opkg/info/uci.list
./usr/lib/opkg/info/uclient-fetch.control
./usr/lib/opkg/info/uclient-fetch.list
./usr/lib/opkg/info/usign.control
./usr/lib/opkg/info/usign.list
./usr/lib/opkg/lists/
./usr/lib/opkg/status
./usr/lib/pppd/
./usr/lib/pppd/2.4.7/
./usr/lib/pppd/2.4.7/rp-pppoe.so
./usr/libexec/
./usr/libexec/login.sh
./usr/sbin/
./usr/sbin/brctl
./usr/sbin/chroot
./usr/sbin/crond
./usr/sbin/dnsmasq
./usr/sbin/dropbear
./usr/sbin/insmod
./usr/sbin/ip6tables
./usr/sbin/ip6tables-restore
./usr/sbin/ip6tables-save
./usr/sbin/iptables
./usr/sbin/iptables-restore
./usr/sbin/iptables-save
./usr/sbin/lsmod
./usr/sbin/modinfo
./usr/sbin/modprobe
./usr/sbin/ntpd
./usr/sbin/ntpd-hotplug
./usr/sbin/odhcp6c
./usr/sbin/odhcpd
./usr/sbin/odhcpd-update
./usr/sbin/opkg-key
./usr/sbin/pppd
./usr/sbin/rmmod
./usr/sbin/ubiattach
./usr/sbin/ubiblock
./usr/sbin/ubicrc32
./usr/sbin/ubidetach
./usr/sbin/ubiformat
./usr/sbin/ubimkvol
./usr/sbin/ubinfo
./usr/sbin/ubinize
./usr/sbin/ubirename
./usr/sbin/ubirmvol
./usr/sbin/ubirsvol
./usr/sbin/ubiupdatevol
./usr/sbin/xtables-multi
./usr/share/
./usr/share/libubox/
./usr/share/libubox/jshn.sh
./usr/share/udhcpc/
./usr/share/udhcpc/default.script
./var
./www/
ganesh@hpTestPc:~/SAM9G25/Openwrt/OpwnWrtWLUCI/openwrt/bin/at91$ ls -al rootfs/
total 64
drwxr-xr-x 16 ganesh ganesh 4096 Feb  5 17:36 .
drwxr-xr-x  4 ganesh ganesh 4096 Mar  2 10:30 ..
drwxr-xr-x  2 ganesh ganesh 4096 Feb  5 17:36 bin
drwxr-xr-x  2 ganesh ganesh 4096 Feb  5 17:36 dev
drwxr-xr-x 17 ganesh ganesh 4096 Feb  5 17:36 etc
drwxr-xr-x 10 ganesh ganesh 4096 Feb  5 17:36 lib
drwxr-xr-x  2 ganesh ganesh 4096 Feb  5 17:36 mnt
drwxr-xr-x  2 ganesh ganesh 4096 Feb  5 17:36 overlay
drwxr-xr-x  2 ganesh ganesh 4096 Feb  5 17:36 proc
drwxrwxr-x  2 ganesh ganesh 4096 Feb  5 17:36 rom
drwxr-xr-x  2 ganesh ganesh 4096 Feb  5 17:36 root
drwxr-xr-x  2 ganesh ganesh 4096 Feb  5 17:36 sbin
drwxr-xr-x  2 ganesh ganesh 4096 Feb  5 17:36 sys
drwxrwxr-x  2 ganesh ganesh 4096 Feb  5 17:36 tmp
drwxr-xr-x  7 ganesh ganesh 4096 Feb  5 17:36 usr
lrwxrwxrwx  1 ganesh ganesh    4 Feb  5 17:36 var -> /tmp
drwxr-xr-x  2 ganesh ganesh 4096 Feb  5 17:36 www
ganesh@hpTestPc:~/SAM9G25/Openwrt/OpwnWrtWLUCI/openwrt/bin/at91$


Then how can create image file of file system...

usually i used the command to create image file... but not working...
mkfs.ubifs -q -r ./rootfs -m 2048 -e 129024 -c 2047 -o rootfs.img

I am not sure.  I would have thought the build system makes the rootfs in image form.  I have no experience directly with an AT91 device.

Actually that tar.gz file may be just for your reference of what is in the rootfs.  You're not supposed to flash it.  What other files are created?

After compilation , in bin/at91/ following files are created

md5sums
openwrt-at91-9g25ek-uImage
openwrt-at91-AT91SAM9G25EK-rootfs.tar.gz
openwrt-at91-root.squashfs
OpenWrt-ImageBuilder-at91-for-linux-i686.tar.bz2
packages
rootfs.img
uImage

Hello tganeshg8

       Have you solved the issue that you had  ?

       I'm asking this is because I want to use the same board (CORE9X25). If there is a problem with running openwrt on this board, then I will not prefer this board.


Best Regards

HI enkavak,

Still i'm not solved...
Now i'm using buildrooot...

If have any idea .. pls share..

Hello tganeshg8

      I'm sorry to say that I have no solution for this issue.

Regards

HI enkavak,

Openwrt porting has been done for At91sam9x and 9g...

if you need help .. i can do...

Hello tganeshg8

       Have tried it by yourself ?

       Is there a step by step procedure to run the openwrt on At91sam9x module ?

       I am looking forward to hearing from you.

Best Regards

HI enkavak,

skype name : tganeshg8

we will discuss ...

Hello tganeshg8,

       I will contact with you soon. To clarify the timezone issue, Where are you from ? mine is (UTC+03:00) Istanbul.

Best Regards

The discussion might have continued from here.