README: Update with some rare information to NB800

This commit is contained in:
Stefan Eichenberger 2016-07-14 14:12:13 +02:00
parent c6cf90e1f0
commit 7ffdf81102
1 changed files with 100 additions and 88 deletions

188
README
View File

@ -4,104 +4,116 @@ URI: git://git.yoctoproject.org/poky
branch: jethro branch: jethro
revision: HEAD revision: HEAD
URI: git://git.openembedded.org/meta-openembedded
branch: jethro
revision: HEAD
layers: meta-python, meta-oe, meta-networking
To get an image that is compatible with the NetModule router, build an nmrouter-image. Set the MACHINE in conf/local.conf to To get an image that is compatible with the NetModule router, build an nmrouter-image. Set the MACHINE in conf/local.conf to
MACHINE ??= "armada-385-nbhw17-nb2800" and add this layer to conf/bblayers.conf MACHINE ??= "armada-385-nbhw17-nb2800" or
MACHINE ??= "am335x-nbhw16"
and add this layer to conf/bblayers.conf
While the NetModule router is running under the original software you have to do the following steps: NB2800:
- Find out what boot partition is currently used: While the NetModule router is running under the original software you have to do the following steps:
cat /proc/cmdline - Find out what boot partition is currently used:
- The partition layout is mmcblk0p1 => bootpart0, mmcblk0p2 => bootpart1, mmcblk0p3=> overlay/data partition cat /proc/cmdline
- Untar the output of the nmrouter-image build to the partition that is not in use (if the above cmd returns mmcblk0p1 then to mmcblk0p2) - The partition layout is mmcblk0p1 => bootpart0, mmcblk0p2 => bootpart1, mmcblk0p3=> overlay/data partition
mount /dev/mmcblk0p2 /mnt - Untar the output of the nmrouter-image build to the partition that is not in use (if the above cmd returns mmcblk0p1 then to mmcblk0p2)
rm -rf /mnt/* mount /dev/mmcblk0p2 /mnt
tar -xjf ./<image>.tar.bz2 -C /mnt rm -rf /mnt/*
- reboot the netmodule router tar -xjf ./<image>.tar.bz2 -C /mnt
- in u-boot you have to manually overwrite the bootcmd. Use the correct boot partition (bootpart0 => 0:1, bootpart1 => 0:2) - reboot the netmodule router
setenv bootcmd 'ext4load mmc 0:2 $kernel_addr /boot/zImage && ext4load mmc 0:2 $fdt_addr /boot/armada-385-nbhw17-nb2800.dtb && setenv bootargs root=/dev/mmcblk0p2 rw rootfstype=ext4 console=ttyS0,115200 rootwait && bootz $kernel_addr - $fdt_addr' - in u-boot you have to manually overwrite the bootcmd. Use the correct boot partition (bootpart0 => 0:1, bootpart1 => 0:2)
saveenv # save the environment in eeprom (ignore message during bootup) setenv bootcmd 'ext4load mmc 0:2 $kernel_addr /boot/zImage && ext4load mmc 0:2 $fdt_addr /boot/armada-385-nbhw17-nb2800.dtb && setenv bootargs root=/dev/mmcblk0p2 rw rootfstype=ext4 console=ttyS0,115200 rootwait && bootz $kernel_addr - $fdt_addr'
- boot to Linux: saveenv # save the environment in eeprom (ignore message during bootup)
boot - boot to Linux:
boot
Do not overwrite the original partition, u-boot will search a valid FPGA there. If you want to overwrite the other partition, make sure you copy the /logic folder from the original partition to the new one! Do not overwrite the original partition, u-boot will search a valid FPGA there. If you want to overwrite the other partition, make sure you copy the /logic folder from the original partition to the new one!
To learn how to build an image and to find the build dependencies visit: To learn how to build an image and to find the build dependencies visit:
http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html
Memory Map of the FPGA (to switch SIMs, reset modems): Memory Map of the FPGA (to switch SIMs, reset modems):
Address Width Name/Comment Address Width Name/Comment
0x0020 16 LED 0x0020 16 LED
LED Control Register LED Control Register
Slice Name Type Reset Description Slice Name Type Reset Description
0 LED0 green RW 1 Enable LED 0 (green) 0 LED0 green RW 1 Enable LED 0 (green)
1 LED0 red RW 1 Enable LED 0 (red) 1 LED0 red RW 1 Enable LED 0 (red)
2 LED1 green RW 0 Enable LED 1 (green) 2 LED1 green RW 0 Enable LED 1 (green)
3 LED1 red RW 0 Enable LED 1 (red) 3 LED1 red RW 0 Enable LED 1 (red)
4 LED2 green RW 0 Enable LED 2 (green) 4 LED2 green RW 0 Enable LED 2 (green)
5 LED2 red RW 0 Enable LED 2 (red) 5 LED2 red RW 0 Enable LED 2 (red)
6 LED3 green RW 0 Enable LED 3 (green) 6 LED3 green RW 0 Enable LED 3 (green)
7 LED3 red RW 0 Enable LED 3 (red) 7 LED3 red RW 0 Enable LED 3 (red)
8 LED4 green RW 0 Enable LED 4 (green) 8 LED4 green RW 0 Enable LED 4 (green)
9 LED4 red RW 0 Enable LED 4 (red) 9 LED4 red RW 0 Enable LED 4 (red)
10 LED5 green RW 0 Enable LED 5 (green) 10 LED5 green RW 0 Enable LED 5 (green)
11 LED5 red RW 0 Enable LED 5 (red) 11 LED5 red RW 0 Enable LED 5 (red)
12 LED6 green RW 0 Enable LED 6 (green) 12 LED6 green RW 0 Enable LED 6 (green)
13 LED6 red RW 0 Enable LED 6 (red) 13 LED6 red RW 0 Enable LED 6 (red)
14 LED7 green RW 0 Enable LED 7 (green) 14 LED7 green RW 0 Enable LED 7 (green)
15 LED7 red RW 0 Enable LED 7 (red) 15 LED7 red RW 0 Enable LED 7 (red)
SIM Card Control SIM Card Control
Address Width Name/Comment Address Width Name/Comment
0x0040 16 SIM Ctrl 0x0040 16 SIM Ctrl
SIM Slot Control Register SIM Slot Control Register
Slice Name Type Reset Description Slice Name Type Reset Description
2..0 SIM1_SEL RW 0 000: disconnect 2..0 SIM1_SEL RW 0 000: disconnect
001: Connect Bus 1 001: Connect Bus 1
010: Connect Bus 2 010: Connect Bus 2
011: Connect Bus 3 011: Connect Bus 3
100: Connect Bus 4 100: Connect Bus 4
Note: If no SIM Card is inserted, the power is disable of the corresponding slot. Note: If no SIM Card is inserted, the power is disable of the corresponding slot.
3 N/A R 0 Reserved 3 N/A R 0 Reserved
6..4 SIM2_SEL RW 0 000: disconnect 6..4 SIM2_SEL RW 0 000: disconnect
001: Connect Bus 1 001: Connect Bus 1
010: Connect Bus 2 010: Connect Bus 2
011: Connect Bus 3 011: Connect Bus 3
100: Connect Bus 4 100: Connect Bus 4
Note: If no SIM Card is inserted, the power is disabled of the corresponding slot. Note: If no SIM Card is inserted, the power is disabled of the corresponding slot.
7 N/A R 0 Reserved 7 N/A R 0 Reserved
10..8 SIM3_SEL RW 0 000: disconnect 10..8 SIM3_SEL RW 0 000: disconnect
001: Connect Bus 1 001: Connect Bus 1
010: Connect Bus 2 010: Connect Bus 2
011: Connect Bus 3 011: Connect Bus 3
100: Connect Bus 4 100: Connect Bus 4
Note: If no SIM Card is inserted, the power is disable of the corresponding slot. Note: If no SIM Card is inserted, the power is disable of the corresponding slot.
11 N/A R 0 Reserved 11 N/A R 0 Reserved
14..12 SIM4_SE RW 0 000: disconnect 14..12 SIM4_SE RW 0 000: disconnect
001: Connect Bus 1 001: Connect Bus 1
010: Connect Bus 2 010: Connect Bus 2
011: Connect Bus 3 011: Connect Bus 3
100: Connect Bus 4 100: Connect Bus 4
Note: If no SIM Card is inserted, the power is disabled of the corresponding slot. Note: If no SIM Card is inserted, the power is disabled of the corresponding slot.
15 N/A R 0 Reserved 15 N/A R 0 Reserved
PCIe Mini Slot Control: PCIe Mini Slot Control:
Address Width Name/Comment Address Width Name/Comment
0x0030 16 PCIe Reset 0x0030 16 PCIe Reset
PCIe Slot Reset PCIe Slot Reset
Slice Name Type Reset Description Slice Name Type Reset Description
0 PCIe1 RST~ RW 0 PCIe Slot 1 Reset 0 PCIe1 RST~ RW 0 PCIe Slot 1 Reset
0: reset asserted 0: reset asserted
1 PCIe2 RST~ RW 0 PCIe Slot 2 Reset 1 PCIe2 RST~ RW 0 PCIe Slot 2 Reset
0: reset asserted 0: reset asserted
2 PCIe3 RST~ RW 0 PCIe Slot 3 Reset 2 PCIe3 RST~ RW 0 PCIe Slot 3 Reset
0: reset asserted 0: reset asserted
3 PCIe4 RST~ RW 0 PCIe Slot 4 Reset 3 PCIe4 RST~ RW 0 PCIe Slot 4 Reset
0: reset asserted 0: reset asserted
4..15 n/a R 0 4..15 n/a R 0
The FPGA Base address is at 0xfd000000, to enable for example LED0:red write 0x2 to 0xfd000020: The FPGA Base address is at 0xfd000000, to enable for example LED0:red write 0x2 to 0xfd000020:
devmem2 0xfd000020 hw 0x02 devmem2 0xfd000020 hw 0x02
NB800:
- To update the software you can do a sw-update.sh -l <rootfs.tar.gz>
- To change the active boot partition do a bd -w boot_part -v <0/1>
- To connect trough a Swisscom SIM do a nbhw16-ctrl -m, check /usr/bin/nbhw16-ctrl for more details and other providers
For questions, send an email to <stefan.eichenberger@netmodule.com> For questions, send an email to <stefan.eichenberger@netmodule.com>