1. Yes, you can. However probably some functions would be affected.
2. LS1028ARDB has already been integrated into OpenWrt, please refer to target/linux/layerscape/README.
Build
--------
Before configuration and build, update and install package feeds.
$ ./scripts/feeds update -a
$ ./scripts/feeds install -a
* make menuconfig
Target System: "NXP Layerscape"
Subtarget: (Select subtarget)
Target Profile: (Select device, or "Multiple devices")
Target Devices: (Select devices. Available when Target Profile is "Multiple devices")
Target Images: (Disable "GZip images" if don't want to compress images)
Note: The first time make menuconfig would create a .config file which
would include all dependencies for selected target. After that, make
menuconfig still could be used to modify packages. If want to change
other target, please remove .config and make menuconfig to select again.
Otherwise the packages selected in .config would be a mess.
* make download (or make download -j<n>)
* make (or make -j<n>)
* Final firmware/image
Path: bin/targets/layerscape/<subtarget>/
Firmware for flash: openwrt-layerscape-<subtarget>-<device>-<rootfs>-firmware.bin
Image for SD card: openwrt-layerscape-<subtarget>-<device>-<rootfs>-sdcard.img
Program sdcard.img to SD card
---------------------------------
sdcard.img could be programmed to SD card in either u-boot environment
or linux environment. After programming, configure the board to boot
from SD card.
* u-boot environment
=> tftp a0000000 <image_name>-sdcard.img
=> mmc write a0000000 0 a0000
Note: The default sdcard.img size is 320MB. a0000 is the block number for 320MB.
blk_num = filesize / 512.
* linux environment
$ dd if=./<image_name>-sdcard.img of=/dev/mmcblkx
Note: Need to check the SD card device name to replace "mmcblkx".
Program firmware.bin to flash
---------------------------------
* LS1028ARDB
Program firmware to current flash with below commands.
=> tftp a0000000 <firmware_name>-firmware.bin
=> sf probe
=> sf erase 0 +$filesize
=> sf write a0000000 0 $filesize
=> reset