Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 18, 2016 12:38PM |
Registered: 10 years ago Posts: 46 |
$ cat /proc/iomem 10000000-17ffffff : physmap-flash.0 20000000-3fffffff : System RAM 2002f000-205eafff : Kernel text 2064c000-206e402b : Kernel data 71000020-7100003f : cns3xxx-i2c.0 71000020-7100003f : cns3xxx-i2c 71000180-710001ff : cns3xxx-pcm1.0 74000000-74000047 : GPIOA 74000000-74000047 : GPIOA 74800000-74800047 : GPIOB 74800000-74800047 : GPIOB 75000000-75000fff : cns3xxx-rtc 75000000-75000fff : cns3xxx-rtc 76000000-76000799 : MISC 76000000-76000799 : MISC 78000000-7800001f : serial 7c000000-7c000053 : cns3xxx-i2s.0 80000000-80000fff : dev:20 81000000-81ffffff : lm0 82000000-82ffffff : cns3xxx-ehci.0 83000000-83ffffff : cns3xxx-ahci.0 85000000-85000fff : sdhci-cns3xxx.0 85000000-85000fff : mmc0 88000000-88ffffff : cns3xxx-ohci.0 90000600-900015ff : cns3xxx-wdt a0000000-a0ffffff : PCIe0 non-prefetchable ac000000-acffffff : PCIe0 I/O space
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 19, 2016 08:57AM |
Registered: 9 years ago Posts: 15 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 21, 2016 05:51AM |
Registered: 9 years ago Posts: 40 |
#define CONFIG_BOOTCOMMAND1 \ "mmcinit;ext2load mmc 0:1 0x8000000 uImage;bootm" #define CONFIG_BOOTCOMMAND2 \ "mmcinit;ext2load mmc 0:2 0x8000000 uImage;bootm" #define CONFIG_BOOTARGS1 \ "console=ttyS0,38400 mem=256M root=/dev/md0 rootwait" #define CONFIG_BOOTARGS2 \ "console=ttyS0,38400 mem=256M root=/dev/md1 rootwait"So you should tell in your README.md to use PARTUUID or UUID as the boot parameters in the config.
CONFIG_CMDLINE_FORCE=yAnd do following:
mkdir boot1 mkdir boot2 sudo mount /dev/mmcblk0p1 boot1 sudo mount /dev/mmcblk0p2 boot2Backup the original, incase it is necessary.
mkdir stockuImage sudo mv boot1/uImage stockuImage/uImage.p1 sudo mv boot2/uImage stockuImage/uImage.p2Place your own kernel in the partitions.
sudo cp uImage boot1 sudo cp uImage boot2
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 23, 2016 08:18AM |
Registered: 9 years ago Posts: 15 |
bootcmd=scsi init;ext2load scsi 0:1 0x4000000 uImage;bootmAnd try to change it to something like
setenv bootcmd 'scsi init; ext2load scsi 0:1 0x2000000 boot.scr; autoscr 0x2000000' saveenvand the boot.scr was a script image of the two command
setenv bootargs console=ttyS0,38400 root=/dev/sda3 rw ext2load scsi 0:1 0x4000000 uImage;bootmI tried to change boot.scr to boot from different partition, and it does not work, but enter those command from UART console works fine.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 23, 2016 03:56PM |
Registered: 9 years ago Posts: 40 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 26, 2016 05:34PM |
Registered: 12 years ago Posts: 62 |
CC arch/arm/mach-cns3xxx/pcie.o arch/arm/mach-cns3xxx/pcie.c: In function ‘check_master_abort’: arch/arm/mach-cns3xxx/pcie.c:100:38: error: ‘struct cns3xxx_pcie’ has no member named ‘cfg_bases’ host_base = (void __iomem *) cnspci->cfg_bases[CNS3XXX_HOST_TYPE].virtual; ^ arch/arm/mach-cns3xxx/pcie.c:100:50: error: ‘CNS3XXX_HOST_TYPE’ undeclared (first use in this function) host_base = (void __iomem *) cnspci->cfg_bases[CNS3XXX_HOST_TYPE].virtual; ^ arch/arm/mach-cns3xxx/pcie.c:100:50: note: each undeclared identifier is reported only once for each function it appears in scripts/Makefile.build:257: recipe for target 'arch/arm/mach-cns3xxx/pcie.o' failed make[1]: *** [arch/arm/mach-cns3xxx/pcie.o] Error 1 Makefile:937: recipe for target 'arch/arm/mach-cns3xxx' failed make: *** [arch/arm/mach-cns3xxx] Error 2
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 26, 2016 07:02PM |
Registered: 9 years ago Posts: 40 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 27, 2016 01:08AM |
Registered: 12 years ago Posts: 62 |
host_base = (void __iomem *) cnspci->cfg_bases[CNS3XXX_HOST_TYPE].virtual;to
host_base = (void __iomem *) cnspci->host_regs;like bodhi's path.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 27, 2016 01:26PM |
Registered: 12 years ago Posts: 62 |
MACHINE_START(CNS3420VB, "Seagate CNS3420 NAS") .smp = smp_ops(cns3xxx_smp_ops), .atag_offset = 0x100, .map_io = cns3420_map_io, .init_irq = cns3xxx_init_irq, .init_time = cns3xxx_timer_init, .init_machine = cns3420_init, .init_late = cns3xxx_pcie_init_late, .restart = cns3xxx_restart, MACHINE_END
MACHINE_START(CNS3420VB, "Cavium Networks CNS3420 Validation Board") .phys_io = CNS3XXX_UART0_BASE, .io_pg_offst = (CNS3XXX_UART0_BASE_VIRT >> 18) & 0xfffc, .boot_params = 0x00000100, .map_io = cns3420_map_io, .init_irq = cns3xxx_init_irq, .timer = &cns3xxx_timer, .init_machine = cns3420_init, MACHINE_END
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 27, 2016 02:31PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 27, 2016 05:03PM |
Registered: 12 years ago Posts: 62 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 28, 2016 05:49PM |
Admin Registered: 13 years ago Posts: 19,010 |
make[2]: *** No rule to make target 'arch/arm/mach-cns3xxx/gpio.o', needed by 'arch/arm/mach-cns3xxx/cns3xxx.o'. Stop.
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 28, 2016 06:00PM |
Registered: 12 years ago Posts: 62 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 29, 2016 12:42PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 29, 2016 12:50PM |
Registered: 12 years ago Posts: 62 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 29, 2016 01:05PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 29, 2016 01:54PM |
Registered: 12 years ago Posts: 62 |
diff --git a/arch/arm/mach-cns3xxx/Kconfig b/arch/arm/mach-cns3xxx/Kconfig index 446ec73..586a36d 100644 --- a/arch/arm/mach-cns3xxx/Kconfig +++ b/arch/arm/mach-cns3xxx/Kconfig @@ -60,4 +60,15 @@ endchoice config CNS3XXX_SPEEDUP_NAS bool "NAS Speedup" +config CNS3XXX_HIGH_PHYS_OFFSET + bool "High physical base address for the CNS3XXX platform" + depends on MMU + default y + help + CNS3XXX boards have the RAM available at 0x20000000, + 256MB of which being mirrored at 0x00000000. + If the board supports 512MB of RAM, this option allows the + memory to be accessed contiguously at the high physical + offset. + endmenu
CC arch/arm/mach-cns3xxx/cns3420vb.o arch/arm/mach-cns3xxx/cns3420vb.c:245:12: warning: ‘struct meminfo’ declared inside parameter list struct meminfo *mi) ^ arch/arm/mach-cns3xxx/cns3420vb.c:245:12: warning: its scope is only this definition or declaration, which is probably not what you want arch/arm/mach-cns3xxx/cns3420vb.c:245:12: warning: ‘struct mach_desc’ declared inside parameter list arch/arm/mach-cns3xxx/cns3420vb.c: In function ‘cns3420_fixup’: arch/arm/mach-cns3xxx/cns3420vb.c:247:4: error: dereferencing pointer to incomplete type mi->nr_banks = 1; ^ arch/arm/mach-cns3xxx/cns3420vb.c:248:4: error: dereferencing pointer to incomplete type mi->bank[0].start = PHYS_OFFSET; ^ arch/arm/mach-cns3xxx/cns3420vb.c:249:4: error: dereferencing pointer to incomplete type mi->bank[0].size = SZ_512M; ^ arch/arm/mach-cns3xxx/cns3420vb.c:250:4: error: dereferencing pointer to incomplete type mi->bank[0].node = 0; ^ arch/arm/mach-cns3xxx/cns3420vb.c: At top level: arch/arm/mach-cns3xxx/cns3420vb.c:266:9: warning: initialization from incompatible pointer type .fixup = cns3420_fixup, ^ arch/arm/mach-cns3xxx/cns3420vb.c:266:9: warning: (near initialization for ‘__mach_desc_CNS3420VB.fixup’) scripts/Makefile.build:258: recipe for target 'arch/arm/mach-cns3xxx/cns3420vb.o' failed make[1]: *** [arch/arm/mach-cns3xxx/cns3420vb.o] Error 1 Makefile:943: recipe for target 'arch/arm/mach-cns3xxx' failed make: *** [arch/arm/mach-cns3xxx] Error 2
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 29, 2016 06:00PM |
Registered: 12 years ago Posts: 62 |
root@seagate-dev:~# cat /proc/iomem 00000000-0fffffff : System RAM 00008000-005b0f7b : Kernel code 005e4000-0062d1f3 : Kernel data 10000000-17ffffff : physmap-flash.0 70000000-70000fff : eth0_mem 70000000-70000fff : eth0_mem 71000020-7100003f : cns3xxx-i2c.0 71000020-7100003f : cns3xxx-i2c 75000000-75000fff : cns3xxx-rtc 78000000-7800001f : serial 82000000-82ffffff : ehci-platform.0 82000000-82ffffff : ehci-platform.0 83000000-83ffffff : ahci.0 83000000-83ffffff : ahci.0 85000000-85000fff : sdhci-cns3xxx.0 88000000-88ffffff : ohci-platform.0
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 29, 2016 06:31PM |
Admin Registered: 13 years ago Posts: 19,010 |
> diff --git a/arch/arm/mach-cns3xxx/Kconfig > b/arch/arm/mach-cns3xxx/Kconfig > index 446ec73..586a36d 100644 > --- a/arch/arm/mach-cns3xxx/Kconfig > +++ b/arch/arm/mach-cns3xxx/Kconfig > @@ -60,4 +60,15 @@ endchoice > config CNS3XXX_SPEEDUP_NAS > bool "NAS Speedup" > > +config CNS3XXX_HIGH_PHYS_OFFSET > + bool "High physical base address for the > CNS3XXX platform" > + depends on MMU > + default y > + help > + CNS3XXX boards have the RAM available at > 0x20000000, > + 256MB of which being mirrored at > 0x00000000. > + If the board supports 512MB of RAM, this > option allows the > + memory to be accessed contiguously at the > high physical > + offset. > + > endmenu >
> CC arch/arm/mach-cns3xxx/cns3420vb.o > arch/arm/mach-cns3xxx/cns3420vb.c:245:12: warning: > ‘struct meminfo’ declared inside parameter > list > struct meminfo *mi) > ^ > arch/arm/mach-cns3xxx/cns3420vb.c:245:12: warning: > its scope is only this definition or declaration, > which is probably not what you want > arch/arm/mach-cns3xxx/cns3420vb.c:245:12: warning: > ‘struct mach_desc’ declared inside parameter > list > arch/arm/mach-cns3xxx/cns3420vb.c: In function > ‘cns3420_fixup’: > arch/arm/mach-cns3xxx/cns3420vb.c:247:4: error: > dereferencing pointer to incomplete type > mi->nr_banks = 1; > ^ > arch/arm/mach-cns3xxx/cns3420vb.c:248:4: error: > dereferencing pointer to incomplete type > mi->bank[0].start = PHYS_OFFSET; > ^ > arch/arm/mach-cns3xxx/cns3420vb.c:249:4: error: > dereferencing pointer to incomplete type > mi->bank[0].size = SZ_512M; > ^ > arch/arm/mach-cns3xxx/cns3420vb.c:250:4: error: > dereferencing pointer to incomplete type > mi->bank[0].node = 0; > ^ > arch/arm/mach-cns3xxx/cns3420vb.c: At top level: > arch/arm/mach-cns3xxx/cns3420vb.c:266:9: warning: > initialization from incompatible pointer type > .fixup = cns3420_fixup, > ^ > arch/arm/mach-cns3xxx/cns3420vb.c:266:9: warning: > (near initialization for > ‘__mach_desc_CNS3420VB.fixup’) > scripts/Makefile.build:258: recipe for target > 'arch/arm/mach-cns3xxx/cns3420vb.o' failed > make[1]: *** [arch/arm/mach-cns3xxx/cns3420vb.o] > Error 1 > Makefile:943: recipe for target > 'arch/arm/mach-cns3xxx' failed > make: *** [arch/arm/mach-cns3xxx] Error 2 >
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 29, 2016 06:48PM |
Registered: 8 years ago Posts: 1 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package February 29, 2016 11:25PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package March 01, 2016 02:46AM |
Registered: 12 years ago Posts: 62 |
# # CPU Core family selection # CONFIG_ARCH_MULTI_V6=y # CONFIG_ARCH_MULTI_V7 is not set CONFIG_ARCH_MULTI_V6_V7=y # CONFIG_ARCH_MULTI_CPU_AUTO is not set # CONFIG_ARCH_BCM is not set CONFIG_ARCH_CNS3XXX=y CONFIG_MACH_CNS3420VB=y # CONFIG_MACH_GW2388 is not set CONFIG_CNS3XXX_HIGH_PHYS_OFFSET=y # CONFIG_ARCH_INTEGRATOR is not set # CONFIG_ARCH_MXC is not set
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package March 01, 2016 03:35AM |
Admin Registered: 13 years ago Posts: 19,010 |
> # > # CPU Core family selection > # > CONFIG_ARCH_MULTI_V6=y > # CONFIG_ARCH_MULTI_V7 is not set > CONFIG_ARCH_MULTI_V6_V7=y > # CONFIG_ARCH_MULTI_CPU_AUTO is not set > # CONFIG_ARCH_BCM is not set > CONFIG_ARCH_CNS3XXX=y > CONFIG_MACH_CNS3420VB=y > # CONFIG_MACH_GW2388 is not set > CONFIG_CNS3XXX_HIGH_PHYS_OFFSET=y > # CONFIG_ARCH_INTEGRATOR is not set > # CONFIG_ARCH_MXC is not set > >
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package March 01, 2016 03:54AM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package March 01, 2016 04:25AM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package March 01, 2016 04:29AM |
Registered: 12 years ago Posts: 62 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package March 01, 2016 08:31PM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package March 02, 2016 02:45AM |
Registered: 12 years ago Posts: 62 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package March 02, 2016 03:01AM |
Admin Registered: 13 years ago Posts: 19,010 |
Re: (WIP) Linux Kernel 3.18.5 Seagate Business Storage NAS (CNSxxx) package March 02, 2016 03:16AM |
Registered: 12 years ago Posts: 62 |