Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 29, 2016 02:48PM |
Registered: 8 years ago Posts: 59 |
MV_BOARD_GPP_INFO rd88f6192AInfoBoardGppInfo[] = /* {{MV_BOARD_GPP_CLASS devClass, MV_U8 gppPinNum}} */ { {BOARD_GPP_USB_VBUS_EN, 10}, {BOARD_GPP_USB_HOST_DEVICE, 11}, {BOARD_GPP_RESET, 14}, {BOARD_GPP_POWER_ON_LED, 15}, {BOARD_GPP_HDD_POWER, 16}, {BOARD_GPP_WPS_BUTTON, 24}, {BOARD_GPP_TS_BUTTON_C, 25}, {BOARD_GPP_USB_VBUS, 26}, {BOARD_GPP_USB_OC, 27}, {BOARD_GPP_TS_BUTTON_U, 30}, {BOARD_GPP_TS_BUTTON_R, 31}, {BOARD_GPP_TS_BUTTON_L, 32}, {BOARD_GPP_TS_BUTTON_D, 34}, {BOARD_GPP_FAN_POWER, 35} };
/* HDD power on */ MV_REG_BIT_SET(GPP_DATA_OUT_REG(hddHigh),(1<<hddPowerBit)); MV_REG_BIT_RESET(GPP_DATA_OUT_EN_REG(hddHigh),(1<<hddPowerBit));
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 29, 2016 03:09PM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 29, 2016 03:33PM |
Registered: 8 years ago Posts: 59 |
~/src//trunk/sysapps/u-boot-3.6.0_STG326/board$ grep -R hddPowerBit * mv_feroceon/mv_orion/mv_main.c: MV_32 hddPowerBit = mvBoarGpioPinNumGet(BOARD_DEV_HDD0_POWER); mv_feroceon/mv_orion/mv_main.c: MV_REG_BIT_SET(GPP_DATA_OUT_REG(0),(1<<hddPowerBit)); mv_feroceon/mv_orion/mv_main.c: MV_REG_BIT_RESET(GPP_DATA_OUT_EN_REG(0),(1<<hddPowerBit)); mv_feroceon/mv_orion/mv_main.c: MV_REG_BIT_SET(GPP_DATA_OUT_REG(0),(1<<hddPowerBit)); mv_feroceon/mv_orion/mv_main.c: MV_REG_BIT_RESET(GPP_DATA_OUT_EN_REG(0),(1<<hddPowerBit)); mv_feroceon/mv_orion/mv_main.c: MV_32 hddPowerBit = mvBoarGpioPinNumGet(BOARD_DEV_HDD0_POWER); mv_feroceon/mv_orion/mv_main.c: MV_REG_BIT_SET(GPP_DATA_OUT_REG(0),(1<<hddPowerBit)); mv_feroceon/mv_orion/mv_main.c: MV_REG_BIT_RESET(GPP_DATA_OUT_EN_REG(0),(1<<hddPowerBit)); mv_feroceon/mv_kw/mv_main.c: MV_32 hddPowerBit; mv_feroceon/mv_kw/mv_main.c: hddPowerBit = mvBoarGpioPinNumGet(BOARD_GPP_HDD_POWER, 0); mv_feroceon/mv_kw/mv_main.c: if (hddPowerBit > 31) mv_feroceon/mv_kw/mv_main.c: hddPowerBit = hddPowerBit % 32; mv_feroceon/mv_kw/mv_main.c: MV_REG_BIT_SET(GPP_DATA_OUT_REG(hddHigh),(1<<hddPowerBit)); mv_feroceon/mv_kw/mv_main.c: MV_REG_BIT_RESET(GPP_DATA_OUT_EN_REG(hddHigh),(1<<hddPowerBit));
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 29, 2016 04:41PM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 30, 2016 04:18AM |
Registered: 8 years ago Posts: 59 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 30, 2016 04:44AM |
Registered: 8 years ago Posts: 59 |
pmx_pwr_sata1: pmx-pwr-sata1 { + marvell,pins = "mpp33"; + marvell,function = "gpio"; + };
regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmx_usb_power &pmx_pwr_sata1>; + + usb0_power: regulator@1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "USB Power"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + enable-active-high; + gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>; + }; + + sata1_power: regulator@2 { + compatible = "regulator-fixed"; + reg = <2>; + regulator-name = "SATA1 Power"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + enable-active-high; + gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>; + }; + };
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 30, 2016 06:53AM |
Registered: 8 years ago Posts: 59 |
NSA3x0S> md f1010104 f1010104: cfde5fff 00000000 00000000 13224080 ._...........@". f1010114: 132e4fb0 00000000 00000000 00000000 .O.............. f1010124: 00000000 00000000 00000000 00000000 ................ f1010134: 00000000 00000000 00000000 00000002 ................ f1010144: fffffff9 00000000 00000000 00000000 ................ f1010154: 00000000 00000000 00000000 00000000 ................ f1010164: 00000000 00000000 00000000 00000000 ................ f1010174: 00000000 00000000 00000000 00000000 ................ f1010184: 00000000 00000000 00000000 00000000 ................ f1010194: 00000000 00000000 00000000 00000000 ................ f10101a4: 00000000 00000000 00000000 00000000 ................ f10101b4: 00000000 00000000 00000000 00000000 ................ f10101c4: 00000000 00000000 00000000 00000000 ................ f10101d4: 00000000 00000000 00000000 00000000 ................ f10101e4: 00000000 00000000 00000000 00000000 ................ f10101f4: 00000000 00000000 00000000 00000000 ................
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 30, 2016 07:55AM |
Admin Registered: 13 years ago Posts: 18,570 |
Quote
Updated 16 April 2015:
Kernel 4.0.0-kirkwood-tld-1 package has been uploaded. The following features were added:
1. This FDT kernel now supports NSA320S, Asus M25, and Netgear Stora. They are still under test, so please post feeback if you try this kernel.
2. Added back the NSA3xx Hardware Monitoring module (missing in previous kernel version)
3. Add module lirc_rpi
4. Added various kernel configs that are new in 4.0 (e.g. device tree overlay), and also various requested configs from forum members.
....
Credits: Thanks to chrlee for the NSA320S patch, moonman at Arch site for noticing the missing NSA3xx Hwmon module, TEN for lirc_rpi suggestion, balbes150 for Asus-M25 DTS, and t00 for the Netgear Stora DTS.
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 30, 2016 10:10AM |
Admin Registered: 13 years ago Posts: 18,570 |
> NSA3x0S> md f1010104 > f1010104: cfde5fff 00000000 00000000 13224080
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 30, 2016 12:25PM |
Registered: 8 years ago Posts: 59 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 30, 2016 03:43PM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 30, 2016 03:49PM |
Registered: 8 years ago Posts: 59 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing January 30, 2016 04:45PM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 22, 2016 12:47AM |
Registered: 8 years ago Posts: 7 |
> ide reset >> See if the 2.5" HDD is initialized OK.
NSA3x0S> ide reset ide reset Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: TOSHIBA DT01ABA300 Firm: MZ6OABB0 Ser#: 35JLXGTGS Type: Hard Disk Supports 48-bit addressing Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
NSA3x0S> ide reset ide reset Reset IDE: Bus 0: not available Bus 1: ................not available (waited for 40 seconds, then pulled out the drive)
NSA3x0S> ide reset ide reset Reset IDE: Bus 0: OK Bus 1: OK Device 0: Model: TOSHIBA DT01ABA300 Firm: MZ6OABB0 Ser#: 35JLXGTGS Type: Hard Disk Supports 48-bit addressing Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512) Device 1: Model: WDC WD5000LPVX-60V0TT0 Firm: 01.01A01 Ser#: WD-WX71A4429506 Type: Hard Disk Supports 48-bit addressing Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
NSA3x0S> ide resev ide resev Reset IDE: Bus 0: OK Bus 1: ................................................not available Device 0: Model: WDC WD5000LPVX-60V0TT0 Firm: 01.01A01 Ser#: WD-WX71A4429506 Type: Hard Disk Supports 48-bit addressing Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
NSA3x0S> ide res_i_want_it_to_work_badly ide res_i_want_it_to_work_badly Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: WDC WD5000LPVX-60V0TT0 Firm: 01.01A01 Ser#: WD-WX71A4429506 Type: Hard Disk Supports 48-bit addressing Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
U-Boot 2015.10-tld-1 (Nov 06 2015 - 16:16:11 -0800) ZyXEL NSA310S/320S 1/2-Bay Power Media Server gcc (Debian 4.9.2-10) 4.9.2 GNU ld (GNU Binutils for Debian) 2.25
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 22, 2016 04:13AM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 22, 2016 05:02AM |
Registered: 8 years ago Posts: 59 |
+ + sata1_power: regulator@2 { + compatible = "regulator-fixed"; + reg = <2>; + regulator-name = "SATA1 Power"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + enable-active-high; + gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;If we have a voltage issue and the regulator has min-microvolt and max-microvolt as 5000000 (5V) for both USB (where it is correct) and sata1... is it that we need to change that to 12000000 somewhere???
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 22, 2016 12:01PM |
Registered: 8 years ago Posts: 7 |
else if (!strncmp (buffer, "sata_phy_powerup", strlen ("sata_phy_powerup"))) { int sata_phy; i = sscanf (buffer + strlen ("sata_phy_powerup"), "%d\n", &sata_phy); if (i == 1) { /* Three matched inputs */ if (mvSataChannelPhyPowerOn (pMvSataAdapter, sata_phy) == MV_TRUE)
Quote
Documentation
• Shut down a SATA physical interface: Execute echo "sata_phy_shutdown x" > /proc/scsi/mvSata/0 to shut down a SATA PHY x.
• Power up a SATA physical interface: Execute echo "sata_phy_powerup x" > /proc/scsi/mvSata/0 to power up a SATA PHY x.
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 22, 2016 02:26PM |
Registered: 8 years ago Posts: 59 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 22, 2016 03:22PM |
Registered: 8 years ago Posts: 7 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 22, 2016 06:41PM |
Registered: 8 years ago Posts: 59 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 22, 2016 11:48PM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 23, 2016 04:34AM |
Admin Registered: 13 years ago Posts: 18,570 |
./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-2.nsa310s.mtd0.kwb -p
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 23, 2016 12:43PM |
Registered: 8 years ago Posts: 7 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 23, 2016 12:48PM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 23, 2016 12:49PM |
Registered: 8 years ago Posts: 59 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 23, 2016 12:51PM |
Registered: 8 years ago Posts: 59 |
NSA3x0S> ide reset Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WCC4MHECYZUX Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) NSA3x0S> ide info IDE device 0: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WCC4MHECYZUX Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) NSA3x0S>
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 23, 2016 12:54PM |
Registered: 8 years ago Posts: 7 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 23, 2016 01:05PM |
Registered: 8 years ago Posts: 59 |
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 23, 2016 01:11PM |
Registered: 8 years ago Posts: 59 |
U-Boot 2015.10tld-2 (Feb 23 2016 - 02:17:09 -0800) ZyXEL NSA310S/320S 1/2-Bay Power Media Server SoC: Kirkwood 88F6702_A1 DRAM: 256 MiB (ECC not enabled) WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 NSA3x0S> mw.l f1010104 c70e0ffd; ide reset Reset IDE: Bus 0: OK Bus 1: .......OK Device 0: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WCC4MHECYZUX Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) Device 1: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WCC4MCY6Y4AH Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) NSA3x0S> ide info IDE device 0: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WCC4MHECYZUX Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) IDE device 1: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WCC4MCY6Y4AH Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) NSA3x0S>
Re: Zyxel NSA3x0S u-boot-2014.07-tld-4 for testing February 23, 2016 01:21PM |
Registered: 8 years ago Posts: 59 |
usb start; mw.l f1010104 c70e0ffd; ide reset; setenv bootargs rootdev=sd0a; setenv netbsd_en yes; fatload usb 0 0x800000 /netbsd.ub; bootm 0x800000
NSA3x0S> boot starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... Use USB retry period from the environment: 15 second(s) 1 Storage Device(s) found Reset IDE: Bus 0: OK Bus 1: .......OK Device 0: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WCC4MHECYZUX Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) Device 1: Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WCC4MCY6Y4AH Type: Hard Disk Supports 48-bit addressing Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512) EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 ** Can't read partition table on 0:0 ** ** Invalid partition 1 ** Wrong Image Format for bootm command Error occured, error code = 112 ERROR: can't get kernel image!