Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Programming \ Broadcom transplanted to OpenWrt summary     - How to force Linux users to change the initial password the first time you log in (Linux)

- Three minutes to teach you to easily grasp the grep command regular expression (Linux)

- Disk storage structure and file recovery experiment (FAT file system) (Linux)

- Deploy Apache Spark cluster environment in Ubuntu (Server)

- extundelete: the Linux-based open source data recovery tools (Linux)

- CentOS 6.4 install and configure Squid Proxy Server (Linux)

- MySQL Error Code Complete (Database)

- Use NTFS-3G to mount NTFS partitions under Linux U disk and removable hard disk (Linux)

- Kitematic how seamless and DockerFILE (Server)

- TWiki LDAP error appears the problem is solved (Linux)

- ORA-08102 errors (Database)

- Example of use WebSocket (Programming)

- Linux System Getting Started Learning: The Linux command line burn ISO or NRG image to DVD (Linux)

- Linux Mint 17.2 64 bit installation Docker and management software seagull (Linux)

- How to use Monit to deploy a server to monitor the system (Server)

- Detailed iptables (Linux)

- Ubuntu 12.04 installation DHCP Server (Server)

- Linux initialization init systems - Systemd (Linux)

- After Oracle 11g dataguard failover rebuild the archive logs are not applied to be NO problem (Database)

- Fast Sort Algorithms (Programming)

  Broadcom transplanted to OpenWrt summary
  Add Date : 2017-08-31      
  Assessment and transplant BCM5862x BCM5301x to OpenWrt platform and:

First, the first clear scoring a few basic concepts:

1, the file system

File System is the operating system used to clear storage devices (disk is common, there are also based on NAND Flash SSDs) methods and data structures or files on the partition; that method of file organization on the storage device. Operating system responsible for managing and storing files software organization's information management system called a file, referred to the file system. File System consists of three parts: the interface of the file system, object manipulation and management software collections, objects and attributes. From the point of view of the system, the file system is space for file storage and distribution equipment are organized, responsible for file storage and file into the protection and retrieval systems. Specifically, it is responsible for users to create documents, stored, read, modify, dump files, control access to documents, undo file when the user is no longer used and so on.

Embedded systems commonly used file systems include: jffs2, squashfs, ubifs, initramfs, nfs ,,,, jffs2 is the most common log file system, ubifs belongs to the next generation jffs2, initramfs kernel used to verify proper operation, squashfs is a compression-type file system, small footprint jffs2 than half of it through after unzip the file system, create a new partition rootfs_data, through the overlay (requires kernel patch support) file system is mounted onto the new partition jffs2, can achieve write. Use the appropriate file system requires appropriate kernel configuration support.

 Each file system production:

    jffs2 ::

    ubifs ::

    suqashfs ::


Wherein the offset is the partition start offset address, MTDPART_OFS_APPEND, showing immediately on a partition,

    MTD Core will automatically calculate and handle the partitioning address; size is the size of the partition, in the last partition we set

MTDPART_SIZ_FULL, represent all parts of the NAND the rest. Such is not the only configuration NAND partition

One, depending on the specific needs of the system may be, we can explicitly specify in the kernel, you can also use the bootloader

Passed to the kernel configuration parameters.

    2, the kernel

    kernel of several formats:






    Several important uboot boot parameters:



Two, BCM specific bootloader - CFE basic operations:

Decompressing ... done
Found a ST compatible serial flash with 256 64KB blocks; total size 16MB

CFE version (r382208) based on BBP 1.0.37 for BCM947XX (32bit, SP,)
Build Date: Thu Feb 28 22:09:40 EST 2013 (root@localhost.localdomain)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144 (0x40000)
DDR Clock: 400 MHz
Warning:. Using legacy sdram_ncdl parameter to set DDR frequency Equivalent setting in clkfreq = 800, * 0 * will be ignored.
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller (r382208)
CPU type 0x0: 800MHz
Tot mem: 262144 KBytes

CFE mem: 0x00F00000 - 0x00FDA500 (894208)
Data: 0x00F4EB5C - 0x00F4F014 (1208)
BSS: 0x00F4F020 - 0x00F74500 (152800)
Heap: 0x00F74500 - 0x00FD8500 (409600)
Stack: 0x00FD8500 - 0x00FDA500 (8192)
Text: 0x00F00000 - 0x00F44874 (280692)
Boot: 0x00FDB000 - 0x0101B000
Reloc: I: 00000000 - D: 00000000

Device eth0: hwaddr 00-90-4C-0F-F0-01, ipaddr, mask
 gateway not set, nameserver not set
Loader: raw Filesys: tftp Dev: eth0 File :: Options: (null)
Loading: Failed.

CFE> printenv
Variable Name Value
-------------------- ------------------------------ --------------------
*** Command status = 0

CFE> help
Available commands:

nvram NVRAM utility.
reboot Reboot.
set console Change the active console device
loop Loop a command
flash Update a flash memory device
memtest Test memory.
f Fill contents of memory.
e Modify contents of memory.
d Dump memory.
u Disassemble instructions.
batch Load a batch file into memory and execute it
go Verify and boot OS image.
boot Load an executable file into memory and execute it
load Load an executable file into memory without executing it
save Save a region of memory to a remote file via TFTP
ping Ping a remote IP host.
arp Display or modify the ARP Table
ifconfig Configure the Ethernet interface
show clocks Show current values of the clocks.
show heap Display information about CFE's heap
show memory Display the system physical memory map.
show devices Display information about the installed devices.
unsetenv Delete an environment variable.
printenv Display the environment variables
setenv Set an environment variable.
help Obtain help for CFE commands

For more information about a command, enter 'help command-name'
*** Command status = 0
CFE> help flash


Update a flash memory device


flash [options] filename [flashdevice]

 Copies data from a source file name or device to a flash memory device.
 The source device can be a disk file (FAT filesystem), a remote file
 (TFTP) or a flash device. The destination device may be a flash or eeprom.
 If the destination device is your boot flash (usually flash0), the flash
 command will restart the firmware after the flash update is complete


-noerase Do not erase flash before writing
 -offset = * Begin programming at this offset in the flash device
 -size = * Size of source device when programming from flash to flash
 -noheader Override header verification, flash binary without checking
 -mem Use memory as source instead of a device

*** Command status = 0
CFE> help load


Load an executable file into memory without executing it


load [-options] host: filename | dev: filename

 This command loads an executable file into memory, but does not
 execute it. It can be used for loading data files, overlays or
 other programs needed before the 'boot' command is used. By
 default, 'load' will load a raw binary at virtual address 0x20000000.


-elf Load the file as an ELF executable
 -srec Load the file as ASCII S-records
 -raw Load the file as a raw binary
 -z Load compessed file
 -loader = * Specify CFE loader name
 -tftp Load the file using the TFTP protocol
 -fatfs Load the file from a FAT file system
 -rawfs Load the file from an unformatted file system
 -fs = * Specify CFE file system name
 -max = * Specify the maximum number of bytes to load (raw only)
 -addr = * Specify the load address (hex) (raw only)

*** Command status = 0
CFE> load tftp
*** Command status = -6
CFE> load -tftp -addr = 81008000
Loader: raw Filesys: tftp Dev: eth0 File: Image Options: (null)
Loading: .. 6566180 bytes read
Entry at 0x81008000
*** Command status = 0
CFE> help go


Verify and boot OS image.



 Boots OS image if valid. Waits for a new OS image if image is invalid
 or boot_wait is unset or not on.

*** Command status = 0

CFE> load -addr = 82000000 -tftp
Loader: raw Filesys: tftp Dev: eth0 File: u-boot.bin Options: (null)
Loading: .. 537212 bytes read
Entry at 0x82000000
*** Command status = 0

CFE> show devices
Device Name Description
------------------- ------------------------------- --------------------------
uart0 NS16550 UART at 0x18000300
uart1 NS16550 UART at 0x18000400
flash0 ST Compatible Serial flash size 16384KB
flash0.boot ST Compatible Serial flash offset 00000000 size 256KB
flash0.trx ST Compatible Serial flash offset 00040000 size 1KB
flash0.os ST Compatible Serial flash offset 0004001C size 16064KB
flash0.nvram ST Compatible Serial flash offset 00FF0000 size 64KB
flash1.boot ST Compatible Serial flash offset 00000000 size 256KB
flash1.trx ST Compatible Serial flash offset 00040000 size 16064KB
flash1.nvram ST Compatible Serial flash offset 00FF0000 size 64KB
eth0 Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller
*** Command status = 0

CFE> flash -noheader -offset = 0 flash0
Reading Done 537212 bytes read
Programming ... done. 537212 bytes written
*** Command status = 0

Three, BCM Network Configuration

Fourth, the transplant SDK to openwrt basic steps and precautions
- Android start automatically and add and delete a desktop shortcut (Programming)
- Linux unpack the tar file to a different directory (Linux)
- Ubuntu Learning Advanced article - to teach you to further enhance system security (Linux)
- systemd-nspawn Quick Guide (Linux)
- Use rfkill soft-switching and Bluetooth wireless capabilities in Linux (Linux)
- MySQL Study of --Percona Server 5.5 Upgrade 5.6 (Database)
- How to use systemd timer (Linux)
- Ubuntu Server 14.04 installation Web server (Linux + Apache + MySQL + PHP) (Server)
- CMake Quick Start Tutorial (Linux)
- wget command examples (Linux)
- Ubuntu 14.04 can be used to create a WIFI hotspot for Android (Linux)
- To configure Samba to share files with Windows under CentOS (Linux)
- Report generation CPU, memory, and input and output ports with the sar command (Linux)
- Linux log management make the system more secure (Linux)
- DB2 table space is redirected to restore the database combat (Database)
- See Shell Script Linux Server network traffic (Server)
- MySQL how to export files with the date format (Database)
- CentOS 6.5 configuration SSDB 1.8.0 (Server)
- Linux permissions Detailed (Linux)
- Archlinux installation tutorial (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.