AKiTiO MyCloud Mini

Install Arch Linux ARM on other devices.

Re: AKiTiO MyCloud Mini

Postby hippo » Fri Feb 24, 2012 11:51 pm

thank you for your explanation. of course, ArchLinux ARM is my favorite on MyCloud Mini, other Linux OS give me more fun.

next step, control LED and buttons on MyCloud Mini. i known must use GPIO, but how to detect GPIO line number? in menuconfig, power button default use #11, recovery button default use #38. they can build as kernel module.
$this->bbcode_second_pass_code('', '
$ modinfo power_button
filename: /lib/modules/2.6.31.14_SMP_7821/kernel/arch/arm/plat-oxnas/power_button.ko
license: GPL v2
depends:
vermagic: 2.6.31.14_SMP_7821 SMP mod_unload ARMv6
parm: invert_leds:bool
parm: timer_count_limit:int
')
$this->bbcode_second_pass_code('', '
$ modinfo user_recovery_button
filename: /lib/modules/2.6.31.14_SMP_7821/kernel/arch/arm/plat-oxnas/user_recovery_button.ko
license: GPL v2
depends:
vermagic: 2.6.31.14_SMP_7821 SMP mod_unload ARMv6
parm: timer_count_limit:int
')
have any idea to test these buttons?
hippo
 
Posts: 20
Joined: Sun Feb 19, 2012 2:45 pm

Re: AKiTiO MyCloud Mini

Postby hippo » Fri Mar 02, 2012 3:48 pm

i follow this thread [How-To] Boot Entirely from SATA, try boot from SATA on MyCloud Mini
$this->bbcode_second_pass_code('', '
Stage-1 Bootloader Mon Nov 14 22:15:13 EST 2011
Attempting to set PLLA to 700MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000E0000
plla_ctrl2 : 0x001B01A0
plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
Sector : 0x0000009A
Hdr len: 0x0001FB1C
Hdr CRC: 0x93E9E071
OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
Device 0: Model: WDC WD1600BEVT-22ZCT0 Firm: 11.01A11 Ser#: WD-WXEZ07C79076
Type: Hard Disk
Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
Device 1: not available
Failed to read valid environment from disk, using built-in default


U-Boot 1.1.2 (Feb 26 2012 - 20:58:05)

U-Boot code: 60E00000 -> 60E1FB1C BSS: -> 60E54344
RAM Configuration:
Bank #0: 60000000 256 MB
SRAM Configuration:
64KB at 0x50000000
NAND:256 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0

Loading from IDE device 0, partition 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.6.31.14_SMP_7821
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1934308 Bytes = 1.8 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.14_SMP_7821
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1934308 Bytes = 1.8 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................................... done, booting the kernel.
')
no more, nothing happen :?

on board u-boot, TFTP load and boot the same uImage(bootargs for test kernel only):
$this->bbcode_second_pass_code('', '
Stage-1 Bootloader 一 8月 30 10:55:36 CST 2010
Attempting to set PLLA to 700MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000E0000
plla_ctrl2 : 0x001B01A0
plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading NAND, Image 0
Hdr len: 0x0001AB60
Hdr CRC: 0xAF5314CA
OK


U-Boot 1.1.2 (Mar 2 2011 - 10:36:51)

U-Boot code: 60D00000 -> 60D1AB60 BSS: -> 60D1F218
RAM Configuration:
Bank #0: 60000000 256 MB
SRAM Configuration:
64KB at 0x50000000
NAND:256 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value
Reading upgrade flag from NAND address 0x01ec0000 : 0
Hit any key to stop autoboot: 0
$
$ setenv ipaddr 192.168.1.200
$ setenv netmask 255.255.255.0
$ setenv serverip 192.168.1.254
$ setenv bootargs 'console=ttyS0,115200 mem=256M'
$ tftpboot 0x60500000 uImage
Wait GMAC to reset
Wait for PHY reset
PHY is Realtek RTL8211D
Wait for link to come up.....................Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.1.254; our IP address is 192.168.1.200
Filename 'uImage'.
Load address: 0x60500000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#####################################################
done
Bytes transferred = 1934372 (1d8424 hex)
$ bootm 0x60500000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.14_SMP_7821
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1934308 Bytes = 1.8 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................................... done, booting the kernel.
Linux version 2.6.31.14_SMP_7821 (hippo@OxNAS) (gcc version 4.6.2 20120120 (prerelease) (GCC) ) #4 SMP Sat Feb 25 09:34:56 CST 2012
CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Oxsemi NAS
...
')
this uImage is ok.

so, SATA boot not support NAS7821?
hippo
 
Posts: 20
Joined: Sun Feb 19, 2012 2:45 pm

Re: AKiTiO MyCloud Mini

Postby WarheadsSE » Fri Mar 02, 2012 4:56 pm

I'll review.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: AKiTiO MyCloud Mini

Postby hippo » Sun Mar 04, 2012 1:09 pm

thanks.
after meny test, i found bootargs set mem=128M can be work, mem=256M will be halt. i use u-boot.wrapped.256M.
$this->bbcode_second_pass_code('', '
Stage-1 Bootloader Mon Nov 14 22:15:13 EST 2011
Attempting to set PLLA to 700MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000E0000
plla_ctrl2 : 0x001B01A0
plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
Sector : 0x0000009A
Hdr len: 0x0001FB1C
Hdr CRC: 0x93E9E071
OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
Device 0: Model: WDC WD1600BEVT-22ZCT0 Firm: 11.01A11 Ser#: WD-WXEZ07C79076
Type: Hard Disk
Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
Device 1: not available
Failed to read valid environment from disk, using built-in default


U-Boot 1.1.2 (Feb 26 2012 - 20:58:05)

U-Boot code: 60E00000 -> 60E1FB1C BSS: -> 60E54344
RAM Configuration:
Bank #0: 60000000 256 MB
SRAM Configuration:
64KB at 0x50000000
NAND:256 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0
$
$ setenv ipaddr 192.168.1.200
$ setenv netmask 255.255.255.0
$ setenv serverip 192.168.1.254
$ setenv bootargs 'console=ttyS0,115200 mem=128M'
$ tftpboot 0x60500000 uImage
Wait GMAC to reset
Wait for PHY reset
PHY is Realtek RTL8211D
Wait for link to come up...............Link up
Wait for auto-negotiation to complete
Link is 1000M
TFTP from server 192.168.1.254; our IP address is 192.168.1.200
Filename 'uImage'.
Load address: 0x60500000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#####################################################
done
Bytes transferred = 1934372 (1d8424 hex)
$ bootm 0x60500000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.14_SMP_7821
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1934308 Bytes = 1.8 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................................... done, booting the kernel.
Linux version 2.6.31.14_SMP_7821 (hippo@OxNAS) (gcc version 4.6.2 20120120 (prerelease) (GCC) ) #4 SMP Sat Feb 25 09:34:56 CST 2012
CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Oxsemi NAS
1 memory region
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writealloc
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS0,115200 mem=128M
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 125936KB available (3284K code, 256K data, 120K init, 0K highmem)
Hierarchical RCU implementation.
...
')
hippo
 
Posts: 20
Joined: Sun Feb 19, 2012 2:45 pm

Re: AKiTiO MyCloud Mini

Postby WarheadsSE » Sun Mar 04, 2012 2:02 pm

:D Glad to here you got it sorted.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: AKiTiO MyCloud Mini

Postby hippo » Mon Mar 05, 2012 3:15 pm

$this->bbcode_second_pass_code('', '
$ printenv bootargs
bootargs=root=/dev/sda2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait ubi.mtd=2,512 mem=256M poweroutage=yes
$ setenv bootargs 'console=ttyS0,115200 mem=128M noinitrd root=/dev/sda5 rootfstype=ext4 raid=noautodetect'
$ saveenv
Saving Environment to Disk...
$ reset
...
$ printenv bootargs
bootargs=console=ttyS0,115200 noinitrd root=/dev/sda5 rootfstype=ext4 raid=noautodetect mem=256M poweroutage=yes
')
after reset, bootargs auto changed mem=256M, and appended poweroutage=yes. that's why kernel halt.

by the way, set mem=128M can be boot, but kernel use 128MB, ArchLinux ARM also use 128MB
$this->bbcode_second_pass_code('', '
...
Memory: 128MB = 128MB total
Memory: 125936KB available (3284K code, 256K data, 120K init, 0K highmem)
...
')
$this->bbcode_second_pass_code('', '
[root@alarm ~]# free
total used free shared buffers cached
Mem: 126216 51856 74360 0 3424 13496
-/+ buffers/cache: 34936 91280
Swap: 499304 0 499304
')

i use DC01 source code to build stage1.wrapped and u-boot.wrapped, U-Boot detected 256MB, if bootargs set mem=256M, kernel still halt, mem=128M can be boot.
how to enable 256MB RAM? modify u-boot/common/main.c or other source file?
hippo
 
Posts: 20
Joined: Sun Feb 19, 2012 2:45 pm

Re: AKiTiO MyCloud Mini

Postby WarheadsSE » Mon Mar 05, 2012 3:21 pm

It's in the config file for the uboot, which passes it to the kernel.

Could you point me to the source tarball for this? I'd like to incorporate any differences.
/EDIT : nvm, I found it. derp.

/EDIT : ooh.. it has stage1, new uboot... TY silverstone...

Looks pretty sweet... http://www.silverstonetek.com/product.p ... 90&area=en
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: AKiTiO MyCloud Mini

Postby hippo » Tue Mar 06, 2012 10:16 am

WarheadsSE:
the source tarball include schematics, maybe useful for Pogoplug Pro.

crimsonredmk:
AKiTiO wiki have more details about WebUI.
hippo
 
Posts: 20
Joined: Sun Feb 19, 2012 2:45 pm

Re: AKiTiO MyCloud Mini

Postby WarheadsSE » Tue Mar 06, 2012 12:07 pm

We have access to the NDA information for the entire reference board, and if they included the full schematics.. oy.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: AKiTiO MyCloud Mini

Postby hippo » Wed Mar 07, 2012 1:04 pm

compile u-boot with MEM_SIZE=128
$this->bbcode_second_pass_code('', '
make \
CROSS_COMPILE=arm-linux- \
SDK_BUILD_HDD_BOOT=1 \
MEM_SIZE=128
')
$this->bbcode_second_pass_code('', '
Stage-1 Bootloader Wed Mar 7 20:24:56 CST 2012
Attempting to set PLLA to 750MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000F0000
plla_ctrl2 : 0x001D01A0
plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading disk 00
Sector : 0x0000009A
Hdr len: 0x000189A8
Hdr CRC: 0xF3BFC17E
OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
Device 0: Model: WDC WD1600BEVT-22ZCT0 Firm: 11.01A11 Ser#: WD-WXEZ07C79076
Type: Hard Disk
Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
Device 1: not available
Environment successfully read from disk 0 primary image


U-Boot 1.1.2 (Mar 7 2012 - 20:27:22)

U-Boot code: 60D00000 -> 60D189A8 BSS: -> 60D1C640
RAM Configuration:
Bank #0: 60000000 128 MB
SRAM Configuration:
64KB at 0x50000000
In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0

Loading from IDE device 0, partition 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.6.31.14_SMP_7821
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1934308 Bytes = 1.8 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.14_SMP_7821
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1934308 Bytes = 1.8 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................................... done, booting the kernel.
Linux version 2.6.31.14_SMP_7821 (hippo@OxNAS) (gcc version 4.6.2 20120120 (prerelease) (GCC) ) #4 SMP Sat Feb 25 09:34:56 CST 2012
CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Oxsemi NAS
1 memory region
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writealloc
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS0,115200 noinitrd root=/dev/sda5 rootfstype=ext4 raid=noautodetect mem=128M poweroutage=yes
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 125936KB available (3284K code, 256K data, 120K init, 0K highmem)
...
')

with MEM_SIZE=256
$this->bbcode_second_pass_code('', '
make \
CROSS_COMPILE=arm-linux- \
SDK_BUILD_HDD_BOOT=1 \
MEM_SIZE=256
')
$this->bbcode_second_pass_code('', '
Stage-1 Bootloader Wed Mar 7 20:24:56 CST 2012
Attempting to set PLLA to 750MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000F0000
plla_ctrl2 : 0x001D01A0
plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading disk 00
Sector : 0x0000009A
Hdr len: 0x000189A8
Hdr CRC: 0xA299FA20
OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
Device 0: Model: WDC WD1600BEVT-22ZCT0 Firm: 11.01A11 Ser#: WD-WXEZ07C79076
Type: Hard Disk
Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
Device 1: not available
Environment successfully read from disk 0 primary image


U-Boot 1.1.2 (Mar 7 2012 - 20:47:24)

U-Boot code: 60D00000 -> 60D189A8 BSS: -> 60D1C640
RAM Configuration:
Bank #0: 60000000 256 MB
SRAM Configuration:
64KB at 0x50000000
In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0

Loading from IDE device 0, partition 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.6.31.14_SMP_7821
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1934308 Bytes = 1.8 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.14_SMP_7821
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1934308 Bytes = 1.8 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................................... done, booting the kernel.
')
seems u-boot source code something wrong?
hippo
 
Posts: 20
Joined: Sun Feb 19, 2012 2:45 pm

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 10 guests