OpenWrt Forum Archive

Topic: U-boot and Kernel image.

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

I am new to Openwrt firmware. My target chipset is RT5350. I know that Openwrt Buildroot can create cross-compile toolchain and root filesystem. How do I create the U-boot and kernel image ?

Thanks,

Openwrt create kernel, rootfs and firmware (contain u-boot header+kernel+rootfs) binary files for supported devices. It don't build u-boot for ralink/mediatek routers. Bootloader (u-boot) may be compiled using ralink/mediatek SDK.
Or you ask how to compile complete firmware for new device?

It will be great if you tell about compiling complete firmware for the device.

Thanks,

Ok. I'll try to help.
Starting from BB 14.07 (openwrt Barrier Braker 14.07 release) you can build firmware for fully supported device (rt5350 is ok) without compiling source. Just use ImageBuilder. I describe IB  CC 15.05.1 release.
After installing IB for rt305x you need create/modify some files:
1. Create target/linux/ramips/dts/YOU-ROUTER.dts - to describe your hardware (flash type/size/layout, buttons and leds, embedded switch wan/lan layout/mac and etc).
2. Modify target/linux/ramips/image/Makefile - to define rules for building firmware binary file.
3. Create target/linux/ramips/rt305x/profiles/your-router.mk - to define which packages to include into firmware.
4. Modify target/linux/ramips/base-files/lib/ramips.sh - to add your board identification.
5. Modify target/linux/ramips/base-files/lib/upgrade/platform.sh - to add your board to known for update.
6. Modify target/linux/ramps/base-files/etc/diag.sh - if your board have status LED.
7. Modify target/linux/ramps/base-files/etc/board.d/01_leds - if your board have other LED which openwrt can use (wifi, usb).
8. Modify target/linux/ramps/base-files/etc/board.d/02_network - if your board have specific network settings.
9. Create firmware binary file with IB commad:

make image PROFILE=your-profile FILES=target/linux/ramips/base-files

and get ready image in bin/ramips directory.
Steps 5-8 are optional.

But 0 step - you need to know how to recover your device at any firmware error. It's good to have u-boot command line serial console or at least your u-boot should support so called emergency recover (possibility to flash new firmware if current firmware is broken).

If any question?

(Last edited by 123serge123 on 29 Jul 2016, 03:51)

Ok.

I have an Ubuntu-mate-14.04.2 LTS OS as a VM in Virtual Box. From the reading, I shall have to use Debian 8(Sussie) with a hard disk size of 60 GB on a Virtual Box. I shall also need a 64-bit machine for host Linux for Image Generator.

https://wiki.openwrt.org/doc/howto/obta … e.generate

From this link, I will install Image generator and Chaos Calmer 15.05.1


Thanks,

Yes, you need 64-bit machine. But for use IB no need too much memory. My IB  use about 5GB (with packages).
And wiki don't explain how to build firmware for new board smile.

Do you suggest Debian 8 (Sussie) for IB, Which one you are using, I might install that one.

Rgds,

I'm using old Ubuntu 12.04 32bit and compile IB by myself.

I am planning to have a hardware of:
External Flash: 8MB (MX25L6405D)
External SDRAM: 32MB (ESMT M12L2561616A)
Wifi: Integrated 802.11b/g/n
MicroSD interface for memory card
USB: Integrated USB 2.0 Host

This hardware is similar with HooToo TM-02 device.

From the step 1, Can I use HooToo TM-02's dts file(HT-TM02.dts) as reference? Can I use it without changes as I donot know how to edit this file at present. The file has "mx25l6405d" references, which mean it support that chip. If we donot find the exact chipset in stock to use in our board, can I use a different chip name here having same memory size(8MB). There is no mention of SDRAM chip in this file, Is there a different location for it?


To do the steps 6,7,8, I donot have a folder  target/linux/ramps/etc. The /etc folder is missing in my Image Builder directory.

Thanks,

Okey.

I am currently using the profile HT-TM02. This device support USB interface, which I wish to test on my board. I am currently not considering testing micro-SD interface.

I am able to find the diag.sh, 01_leds, 02_network files in target/linux/ramips/base-files/etc folder( steps 6 to 8), it was a typo when you were entering the full folder path smile

My command was:

make image PROFILE=HT-TM02

It generate files in bin/ramips directory.

The current main files are:
openwrt-15.05.1-ramips-rt305x-uImage.bin
openwrt-15.05.1-ramips-rt305x-vmlinux.bin
openwrt-15.05.1-ramips-rt305x-vmlinux.elf
openwrt-15.05.1-ramips-rt305x-root.squashfs                   
openwrt-15.05.1-ramips-rt305x-ht-tm02-squashfs-sysupgrade.bin

Can you explain about these images, uImage.bin and vmlinux.bin are kernel images as I know.
There is no u-boot generated in this folder I suppose.
openwrt-15.05.1-ramips-rt305x-root.squashfs seem to be the file system.

Using flashrom software and ARM-USB-OCD(https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD/), I can program a u-boot to internal flash of the processor?

Rgds,

(Last edited by pradeepsysargus on 27 Jul 2016, 11:22)

The Image Generator command given creates the same files as here. And in all likelihood they do not contain the kmod packages necessary for USB support.

pradeepsysargus wrote:

From the step 1, Can I use HooToo TM-02's dts file(HT-TM02.dts) as reference?

Why not?

The file has "mx25l6405d" references, which mean it support that chip. If we donot find the exact chipset in stock to use in our board, can I use a different chip name here having same memory size(8MB).

Linux kernel spi-flash driver autodetect chip type. It can recognize practically all chipset in stock.

There is no mention of SDRAM chip in this file, Is there a different location for it?

Don't worry. It's a responsibility of bootloader (u-boot) to determine type and size of RAM

To do the steps 6,7,8, I donot have a folder  target/linux/ramps/etc. The /etc folder is missing in my Image Builder directory.

My mistake. I've corrected prev post.

pradeepsysargus wrote:

openwrt-15.05.1-ramips-rt305x-uImage.bin
openwrt-15.05.1-ramips-rt305x-vmlinux.bin
openwrt-15.05.1-ramips-rt305x-vmlinux.elf
openwrt-15.05.1-ramips-rt305x-root.squashfs                   
openwrt-15.05.1-ramips-rt305x-ht-tm02-squashfs-sysupgrade.bin

First three files are used for testing/debugging usually. It's difficult to describe its briefly. Last two files are root filesystem and firmware (u-boot header+kernel+root filesystem) images. 

Using flashrom software and ARM-USB-OCD(https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD/), I can program a u-boot to internal flash of the processor?

Yes. With help of external flash programmer you can read/write any part of flash chip including u-boot, u-boot env, factory and firmware.

Thanks for the replies.

I need to generate an u-boot Image also I suppose.

http://www.dnclabs.com/?p=1329
http://www.dnclabs.com/?p=1321

From the above links, there are steps to download u-boot sources, download mips-cross compiler.
He adds his Flash chip set information in a file spi_flash.c in U-boot drivers. He uses 'make distclean', 'make menuconfig' - chooses RT chipset and SDRAM size here and finally 'make'.

He is using a 32-bit host computer as the Ralink SDK toolchain is already compiled for a 32-bit architecture.

I get a uboot.img file after compilation.

With help of external flash programmer you can read/write any part of flash chip including u-boot, u-boot env, factory and firmware.

How do I program u-boot and uImage files at different partition using programmer?
All I know is the command,

flashrom -p ft2232_spi:type=arm-usb-ocd -w uboot.img

There is no mention of address where the uboot.img file will be programmed. If I wish to program a uImage file, shouldn't I give a different address in the command, will it not overwrite the u-boot image ?

In our board, there is no ethernet port, I suppose we need one, because after u-boot loads up, we need to use tftp to transfer the uImage file to RAM ? Can we program the NOR flash without ethernet support?

Rgds,

pradeepsysargus wrote:
flashrom -p ft2232_spi:type=arm-usb-ocd -w uboot.img

There is no mention of address where the uboot.img file will be programmed. If I wish to program a uImage file, shouldn't I give a different address in the command, will it not overwrite the u-boot image ?

See flashrom "--layout" parameter discription. By default flashrom use full flash image for read/write operation.

In our board, there is no ethernet port, I suppose we need one, because after u-boot loads up, we need to use tftp to transfer the uImage file to RAM ? Can we program the NOR flash without ethernet support?

You can configure u-boot to use "loadb" command for loading firmware through serial console. But ether port is more comfortable.

I am able to detect my flash chip when I use the command:

./flashrom -p ft2232_spi:type=arm-usb-ocd -c EN25Q64

If use the below command to write binary file to the flash memory using JTAG - ARM-USB-OCD debugger for my target board RT5350F-OLinuXino-EVB, I am getting an error.

./flashrom -p ft2232_spi:type=arm-usb-ocd -w FlashImage_RT5350F_OLinuXino_EVB.bin

The error is:

Found Eon flash chip "EN25Q64" (8192 kB, SPI) on ft2232_spi.
ftdi_write_data: -110, usb bulk write failed
send_buf failed before read: 1
Reading old flash chip contents... ftdi_read_data: -110, usb bulk read failed
get_buf failed: 1
FAILED.

Please let me know,

Thanks.

It's time to go flashrom.org? smile

Thanks for pointing to flashrom.org.

Seems we cannot use --layout configuration to write to a specific region of flash as it was showing image size not equal to flash size error. There is a work around for that. smile

I have some time to play with my RT5350-Olimex-EVB board till the actual board arrive in some 15 days.

I have generated HT-TM02 device firmware image that I mentioned in one of the previous posts.
I have used the uboot.img file and openwrt-15.05.1-ramips-rt305x-ht-tm02-squashfs-sysupgrade.bin file to put in to the partition locations 0x00000 and 0x50000. I have left u-boot-env and factory partitions as empty.

http://www.dnclabs.com/wp-content/uploa … ry_map.png
In the above link, the second image is the partitions I am following.

After flashing the two images to Olimex EVB, I am able to see the u-boot detecting flash memory and SDRAM. Kernel is able to boot. For HT-TM02, in the .dts file, there is a different flash memory that is mentioned. Still my kernel is able to detect the flash memory that is on EVB board. It mentioned that it was expecting a different flash memory, but still it is able to detect.

I am able to see the Openwrt network and able to connect to it without any password, I suppose these settings can be controlled at /etc/config/wireless in the board.

I am not able to open the LUCI interface at 192.168.1.1

What should I look at now ?

my /etc/config/wireless file looks like:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path '10180000.wmac'
        option htmode 'HT20'
        option disabled '0'

config wifi-iface
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

Thanks,

For Image Builder,  Chaos Calmer 15.05.1, You have given steps to create/edit files.

Isn't there option like 'make menuconfig' where we can enable the interfaces?

If possible, can you give me your contact email as I donot get any notifications when You send a reply to my post. I am not sure if you are getting notification either.

Thanks,

pradeepsysargus wrote:

I have left u-boot-env and factory partitions as empty.

Empty factory partition will disable wifi.

Still my kernel is able to detect the flash memory that is on EVB board. It mentioned that it was expecting a different flash memory, but still it is able to detect.

Correct dts-file to remove kernel warning.

I am not able to open the LUCI interface at 192.168.1.1

You can add luci to firmware with command

make image PROFILE=HT-TM02 PACKAGES="luci"

or directly editing profile file in target/linux/ramips/rt305x/profiles

my /etc/config/wireless file looks like:

You can add your preconfigured wireless-file to target/linux/ramips/base-files/etc/config/wireless and call

make image PROFILE=HT-TM02 PACKAGES="luci" FILES=target/linux/ramips/base-files

This way allow to replace any file in flnal image.

Okey

Empty factory partition will disable wifi.

How do I create a factory image that enable my wifi ?
How should I use u-boot-env partition?

If I change the following line in base-files/etc/config/wireless

        option hwmode '11g'

to

       option hwmode '11n'

does it change the datarate that happen in wifi? Is there a free tool that I can use to sniff this wifi protocol ?

Thanks,

pradeepsysargus wrote:

How do I create a factory image that enable my wifi ?

Every device is calibrated by vendor. This data is written into factory partition. If you lose this data you can use reference settings for your chipset from Ralink/Mediatek SDK with unpredictable state (from wifi work ok to wifi performance degradation or total wifi disfunction).

How should I use u-boot-env partition?

uboot-env may be empty

does it change the datarate that happen in wifi? Is there a free tool that I can use to sniff this wifi protocol ?

hwmode select 2.4/5GHz mode.
htmode - HT20 or HT40 select high transfer modes.
See wiki for details.

you can use reference settings for your chipset from Ralink/Mediatek SDK

https://github.com/stevenylai/ralink_sdk

I found the above for ralink sdk, I have to write data to factory paritition I suppose, Do you know steps to create a factory image file (wifi ok state) for RT5350 chipset.

I am going through the wiki link that you have mentioned in the previous post.

Thanks,

What is current state of your device? Show output of commands

dmesg
hexdump -C /dev/mtd2

Currently, I am able to connect to the 'Openwrt' network and also access its LUCI inferface with the instructions given by you.

make image PROFILE=HT-TM02 PACKAGES="luci"

created the firmware image which I used to create the final flash image.

I kept u-boot-env and factory partitions as empty(looks like wifi is ok even without factory image)

The output of the below command is:

hexdump -C /dev/mtd2

00000000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00010000

I have put an USB pen drive into the usb -slot of the board, I am not able to see that in the LUCI interface.
Although, it detects in the board. I see the below message when I plug the USB on the board:

[  834.520000] usb 1-1: new high-speed USB device number 2 using ehci-platform

I am putting the dmesg of my board for reference:

[    0.000000] Linux version 3.18.23 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47269) ) #1 Sun Jan 31 14:39:33 CET 2016
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[    0.000000] MIPS: machine is HooToo HT-TM02
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 802f6290, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=0007208e
[    0.000000] Readback ErrCtl register=0007208e
[    0.000000] Memory: 28948K/32768K available (2508K kernel code, 119K rwdata, 492K rodata, 136K init, 185K bss, 3820K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 360MHz
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.010000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.090000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110000] pinctrl core: initialized pinctrl subsystem
[    0.120000] NET: Registered protocol family 16
[    0.130000] rt2880-pinmux pinctrl: try to register 28 pins ...
[    0.130000] pinctrl core: registered pin 0 (io0) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 1 (io1) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 2 (io2) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 3 (io3) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 4 (io4) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 5 (io5) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 6 (io6) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 7 (io7) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 8 (io8) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 9 (io9) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 10 (io10) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 11 (io11) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 12 (io12) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 13 (io13) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 14 (io14) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 15 (io15) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 16 (io16) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 17 (io17) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 18 (io18) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 19 (io19) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 20 (io20) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 21 (io21) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 22 (io22) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 23 (io23) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 24 (io24) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 25 (io25) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 26 (io26) on rt2880-pinmux
[    0.130000] pinctrl core: registered pin 27 (io27) on rt2880-pinmux
[    0.130000] pinctrl core: add 3 pinmux maps
[    0.130000] rt2880-pinmux pinctrl: found group selector 0 for i2c
[    0.130000] rt2880-pinmux pinctrl: found group selector 4 for jtag
[    0.130000] rt2880-pinmux pinctrl: found group selector 2 for uartf
[    0.130000] rt2880-pinmux pinctrl: request pin 1 (io1) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 2 (io2) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 17 (io17) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 18 (io18) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 19 (io19) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 20 (io20) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 21 (io21) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 7 (io7) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 8 (io8) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 9 (io9) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 10 (io10) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 11 (io11) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 12 (io12) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 13 (io13) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: request pin 14 (io14) for pinctrl
[    0.130000] rt2880-pinmux pinctrl: failed to lookup the sleep state
[    0.140000] rt2880_gpio 10000600.gpio: registering 22 gpios
[    0.150000] rt2880_gpio 10000600.gpio: registering 22 irq handlers
[    0.160000] Switched to clocksource systick
[    0.170000] NET: Registered protocol family 2
[    0.180000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.190000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.200000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.220000] TCP: reno registered
[    0.220000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.230000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.250000] NET: Registered protocol family 1
[    0.260000] rt-timer 10000100.timer: maximum frequency is 7324Hz
[    0.270000] alarmtimer alarmtimer: no of_node; not parsing pinctrl DT
[    0.270000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.320000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.330000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.380000] msgmni has been set to 56
[    0.390000] io scheduler noop registered
[    0.390000] io scheduler deadline registered (default)
[    0.410000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.420000] serial8250 serial8250: no of_node; not parsing pinctrl DT
[    0.420000] pinctrl core: add 1 pinmux maps
[    0.420000] rt2880-pinmux pinctrl: found group selector 3 for uartlite
[    0.420000] rt2880-pinmux pinctrl: request pin 15 (io15) for 10000c00.uartlite
[    0.420000] rt2880-pinmux pinctrl: request pin 16 (io16) for 10000c00.uartlite
[    0.420000] console [ttyS0] disabled
[    0.430000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a 16550A
[    0.450000] console [ttyS0] enabled
[    0.460000] bootconsole [early0] disabled
[    0.480000] pinctrl core: add 1 pinmux maps
[    0.480000] pinctrl core: add 1 pinmux maps
[    0.480000] rt2880-pinmux pinctrl: found group selector 1 for spi
[    0.480000] rt2880-pinmux pinctrl: found group selector 6 for spi_cs1
[    0.480000] rt2880-pinmux pinctrl: request pin 3 (io3) for 10000b00.spi
[    0.480000] rt2880-pinmux pinctrl: request pin 4 (io4) for 10000b00.spi
[    0.480000] rt2880-pinmux pinctrl: request pin 5 (io5) for 10000b00.spi
[    0.480000] rt2880-pinmux pinctrl: request pin 6 (io6) for 10000b00.spi
[    0.480000] rt2880-pinmux pinctrl: request pin 27 (io27) for 10000b00.spi
[    0.510000] m25p80 spi32766.0: found en25q64, expected mx25l6405d
[    0.520000] m25p80 spi32766.0: en25q64 (8192 Kbytes)
[    0.530000] 4 ofpart partitions found on MTD device spi32766.0
[    0.540000] Creating 4 MTD partitions on "spi32766.0":
[    0.550000] 0x000000000000-0x000000030000 : "u-boot"
[    0.560000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.580000] 0x000000040000-0x000000050000 : "factory"
[    0.590000] 0x000000050000-0x000000800000 : "firmware"
[    0.670000] 2 uimage-fw partitions found on MTD device firmware
[    0.680000] 0x000000050000-0x000000162ac1 : "kernel"
[    0.700000] 0x000000162ac1-0x000000800000 : "rootfs"
[    0.710000] mtd: device 5 (rootfs) set to be root filesystem
[    0.720000] 1 squashfs-split partitions found on MTD device rootfs
[    0.730000] 0x000000390000-0x000000800000 : "rootfs_data"
[    0.750000] ralink_soc_eth 10100000.ethernet: generated random MAC address 42:de:97:b9:37:ca
[    0.770000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.790000] rt2880_wdt 10000120.watchdog: Initialized
[    0.800000] TCP: cubic registered
[    0.800000] NET: Registered protocol family 17
[    0.810000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.840000] Bridge firewalling registered
[    0.850000] 8021q: 802.1Q VLAN Support v1.8
[    0.890000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.900000] Freeing unused kernel memory: 136K (8030e000 - 80330000)
[    3.810000] init: Console is alive
[    3.820000] init: - watchdog -
[    6.810000] usbcore: registered new interface driver usbfs
[    6.820000] usbcore: registered new interface driver hub
[    6.830000] usbcore: registered new device driver usb
[    6.850000] rt2880-pinmux pinctrl: request pin 10 (io10) for pio:10
[    6.850000] rt2880-pinmux pinctrl: request pin 14 (io14) for pio:14
[    6.850000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.870000] ehci-platform: EHCI generic platform driver
[    7.080000] phy phy-usbphy.0: remote usb device wakeup disabled
[    7.090000] phy phy-usbphy.0: UTMI 16bit 30MHz
[    7.100000] ehci-platform 101c0000.ehci: EHCI Host Controller
[    7.110000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    7.130000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    7.160000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    7.170000] usb usb1: no of_node; not parsing pinctrl DT
[    7.170000] hub 1-0:1.0: no of_node; not parsing pinctrl DT
[    7.170000] hub 1-0:1.0: USB hub found
[    7.180000] hub 1-0:1.0: 1 port detected
[    7.190000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.210000] ohci-platform: OHCI generic platform driver
[    7.220000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    7.230000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    7.250000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    7.320000] usb usb2: no of_node; not parsing pinctrl DT
[    7.320000] hub 2-0:1.0: no of_node; not parsing pinctrl DT
[    7.320000] hub 2-0:1.0: USB hub found
[    7.330000] hub 2-0:1.0: 1 port detected
[    7.340000] rt2880-pinmux pinctrl: request pin 7 (io7) for pio:7
[    7.340000] rt2880-pinmux pinctrl: request pin 12 (io12) for pio:12
[    7.870000] init: - preinit -
[    9.300000] rt305x-esw 10110000.esw: link changed 0x00
[    9.640000] random: procd urandom read with 15 bits of entropy available
[   12.850000] jffs2: notice: (314) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   12.880000] mount_root: switching to jffs2 overlay
[   12.950000] procd: - early -
[   12.950000] procd: - watchdog -
[   14.200000] procd: - ubus -
[   15.220000] procd: - init -
[   16.550000] NET: Registered protocol family 10
[   16.570000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   16.610000] Loading modules backported from Linux version master-2015-03-09-0-g141f155
[   16.630000] Backport generated by backports.git backports-20150129-0-gdd4a670
[   16.650000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.680000] nf_conntrack version 0.5.0 (454 buckets, 1816 max)
[   16.760000] xt_time: kernel timezone is -0000
[   16.820000] cfg80211: Calling CRDA to update world regulatory domain
[   16.880000] cfg80211: World regulatory domain updated:
[   16.890000] cfg80211:  DFS Master region: unset
[   16.890000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   16.910000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   16.930000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   16.950000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   16.960000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   16.980000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   17.000000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   17.020000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   17.030000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   17.130000] PPP generic driver version 2.4.2
[   17.150000] NET: Registered protocol family 24
[   17.210000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected
[   17.220000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5350 detected
[   17.240000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   28.790000] device eth0 entered promiscuous mode
[   28.810000] br-lan: port 1(eth0) entered forwarding state
[   28.820000] br-lan: port 1(eth0) entered forwarding state
[   30.820000] br-lan: port 1(eth0) entered forwarding state
[   31.900000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   31.920000] device wlan0 entered promiscuous mode
[   31.930000] br-lan: port 2(wlan0) entered forwarding state
[   31.940000] br-lan: port 2(wlan0) entered forwarding state
[   32.040000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   33.940000] br-lan: port 2(wlan0) entered forwarding state
[   70.070000] random: nonblocking pool is initialized
[  834.520000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[  834.680000] usb 1-1: no of_node; not parsing pinctrl DT

Let me know how do I see the USB pen drive data on the LUCI interface.

Thanks,