Go to file
Martin Kennedy 341681030c mpc85xx: add support for Freescale (NXP) P2041RDB
Specifications:

  - SoC: Freescale P2041 QorIQ CPU (4x e500mc core @ 1.5GHz)
  - RAM: 4GiB DDR3-1333 SODIMM
  - SPI Flash: 16MiB (Spansion S25SL12801)
  - NOR Flash: 128MiB
  - NAND Flash: 512MiB
  - Ethernet: 3 x GbE port (VSC8221XHH PHY via SGMII)
  - Ethernet: 2 x GbE port (VSC8641XKO PHY via RGMII)
  - 2 x PCIe 2.0 8x slot (electrically 4x)
  - SDHC slot
  - 2 x SATA-II ports
  - 2 x RS232 ports
  - 2 x USB 2.0 ports
  - 1588 header
  - Optional: SFP+ via XAUI interface to riser card (NXP XAUI-RISER-B)

  See https://www.nxp.com/docs/en/fact-sheet/P2041RDBFS.pdf.

Installation:

  1. Requires TFTP server with initramfs & sysupgrade .bins on same
     LAN as connected to the middle-bottom most port ("SGMII3").
  2. Connect to "TOP UART0" with a USB to RS232 cable and turn on.
  3. Power on the machine; connect to U-boot over 115200-baud connection
  4. Interrupt U-boot process and boot Openwrt .,.,.
  5. Set up U-boot environment variables:

     setenv bootargs /dev/mtdblock3 rw console=ttyS0,115200 rootfstype=squashfs earlyprintk=serial,ttyS0,115200
     setenv bootcmd setenv bootargs \$bootargs \$othbootargs \; bootm \$fileaddr - \$fdtaddr
     setenv othbootargs usdpaa_mem=256M fsl_fm_max_frm=9600
     saveenv

     setenv bootfile openwrt-mpc85xx-p2041-freescale_p2041rdb-initramfs-kernel.bin
     setenv fdtfile openwrt-mpc85xx-p2041-freescale_p2041rdb-squashfs-fdt.bin
     setenv loadaddr 1000000
     setenv fdtaddr 2000000
     setenv ipaddr $pick_a_reachable_ip_address
     setenv serverip $your_tftp_server_ip
     tftpboot $fdtaddr $serverip:$fdtfile ; tftpboot $loadaddr $serverip:$bootfile ; bootm $loadaddr - $fdtaddr

  6. Copy sysupgrade image to /tmp on P2041-RDB
  7. sysupgrade /tmp/<filename-of-sysupgrade>.bin

Squashed:

  - Enable CONFIG_CORENET_DEFAULT for p2041-based boards

  - Disable a new kernel config so I may build uninterrupted

    This is, SGY_CTS1000.

  - Update default configs to include DPAA/QorIQ SoC stuff

  - Further update p2041 config-default

    As according to kernel documentation. See
    https://www.kernel.org/doc/html/v5.8/networking/device_drivers/freescale/dpaa.html#configuring-dpaa-ethernet-in-your-kernel

  - Add CONFIG_CLK_QORIQ

    This is actually required for initializing networking h/w. See
    https://community.nxp.com/t5/P-Series/p2041-kernel-upgrade-to-the-4-1-provided-by-2-0-SDK/td-p/650893

Signed-off-by: Martin Kennedy <hurricos@gmail.com>
2021-02-24 22:07:49 +00:00
.github build: Update README & github help 2018-07-08 09:41:53 +01:00
config image: allow building FIT and uImage with ramdisk 2021-02-24 01:35:20 +00:00
include image: allow building FIT and uImage with ramdisk 2021-02-24 01:35:20 +00:00
LICENSES LICENSES: include all used licenses in LICENSES directory 2021-02-14 19:21:38 +01:00
package zlib: properly split patches 2021-02-24 14:08:29 +01:00
scripts image: allow building FIT and uImage with ramdisk 2021-02-24 01:35:20 +00:00
target mpc85xx: add support for Freescale (NXP) P2041RDB 2021-02-24 22:07:49 +00:00
toolchain glibc: update to latest 2.33 commit 2021-02-13 10:07:40 +01:00
tools ramips: mt7621: add TP-Link EAP235-Wall support 2021-02-19 14:00:08 +01:00
.gitattributes
.gitignore build: improve ccache support 2020-07-11 15:19:53 +02:00
BSDmakefile build: use SPDX license tags 2021-02-05 14:54:47 +01:00
Config.in build: use SPDX license tags 2021-02-05 14:54:47 +01:00
COPYING COPYING: add COPYING file to specify project licenses 2021-02-14 19:21:38 +01:00
feeds.conf.default feeds: add freifunk feed 2020-06-24 14:58:17 +02:00
Makefile build: use SPDX license tags 2021-02-05 14:54:47 +01:00
README.md build/prereq: require make 4.1 or later 2021-02-15 16:35:49 -10:00
rules.mk Mostly revert "build: add support for fixing up library soname" 2021-02-15 18:47:21 +01:00

OpenWrt logo

OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to build a complete firmware around it; for users this means the ability for full customization, to use the device in ways never envisioned.

Sunshine!

Development

To build your own firmware you need a GNU/Linux, BSD or MacOSX system (case sensitive filesystem required). Cygwin is unsupported because of the lack of a case sensitive file system.

Requirements

You need the following tools to compile OpenWrt, the package names vary between distributions. A complete list with distribution specific packages is found in the Build System Setup documentation.

gcc binutils bzip2 flex python3 perl make4.1+ find grep diff unzip gawk getopt
subversion libz-dev libc-dev rsync

Quickstart

  1. Run ./scripts/feeds update -a to obtain all the latest package definitions defined in feeds.conf / feeds.conf.default

  2. Run ./scripts/feeds install -a to install symlinks for all obtained packages into package/feeds/

  3. Run make menuconfig to select your preferred configuration for the toolchain, target system & firmware packages.

  4. Run make to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.

The main repository uses multiple sub-repositories to manage packages of different categories. All packages are installed via the OpenWrt package manager called opkg. If you're looking to develop the web interface or port packages to OpenWrt, please find the fitting repository below.

Support Information

For a list of supported devices see the OpenWrt Hardware Database

Documentation

Support Community

  • Forum: For usage, projects, discussions and hardware advise.
  • Support Chat: Channel #openwrt on freenode.net.

Developer Community

License

OpenWrt is licensed under GPL-2.0