Debian Squeeze/Wheezy on NSA-310

Marvell Kirkwood based
Post Reply
scoobie
Posts: 34
Joined: Wed Jan 11, 2012 11:35 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by scoobie » Sat Feb 11, 2012 5:05 pm

If I ignore the warning and proceed - after about an hour I get the message "No installable kernel was found in the defined APT sources."
See below (sorry about the ANSI boxes, I was using Hyperterm!
Where am I going wrong?
Thanks
-

lqqqqqqqqqqqqqqqqqqqqqqu [!!] Partition disks tqqqqqqqqqqqqqqqqqqqqqqqk
lx x
x x Logical Volume Manager not available xx
xx The current kernel doesn't support the Logical Volume Manager. You x
x x may need to load the lvm-mod module. xx
x x xx
x x <Go Back> <Continue> xx
qx x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



lqqqqqqqqqqqqqqqqqqqqqqqqu [!!] Partition disks tqqqqqqqqqqqqqqqqqqqqqqqqq
k x x
x The installer can guide you through partitioning a disk (using x
x different standard schemes) or, if you prefer, you can do it x
x manually. With guided partitioning you will still have a chance later x
x to review and customise the results. x
x x
x If you choose guided partitioning for an entire disk, you will next x
x be asked which disk should be used. x
x x
x Partitioning method: x
x x
x Guided - use the largest continuous free space
x x Guided - use entire disk x
x Guided - use entire disk and set up encrypted LVMM x
x Manual x
x x
x <Go Back> x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



lqqqqqqqqqqqqqqqqqqqqqqqqqu [!] Partition disks tqqqqqqqqqqqqqqqqqqqqqqqqq
k x x
x Selected for partitioning: x
x x
x SCSI1 (0,0,0) (sda) - ATA WDC WD20EARX-00P: 2.0 TB (2.0 TB) x
x x
x The disk can be partitioned using one of several different schemes. x
x If you are unsure, choose the first one. x
x x
x Partitioning scheme: x
x x
x All files in one partition (recommended for new users)
x x Separate /home partition x
x Separate /home, /usr, /var, and /tmp partitions x
x x
x <Go Back> x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj


lqqqqqqqqqqqqqqqqqqqqqqqqu [!!] Partition disks tqqqqqqqqqqqqqqqqqqqqqqqqq
k x x
x This is an overview of your currently configured partitions and mount x
x points. Select a partition to modify its settings (file system, mount x
x point, etc.), a free space to create partitions, or a device to x
x initialize its partition table. x
x x
x > #3 500.0 MB swap x
x > #4 1.0 MB K biosgrub a x
x > #5 2.0 TB B f ext3 / a x
x > #6 510.9 MB f swap swap a x
x > 8.2 kB FREE SPACE a x
x SCSI3 (0,0,0) (sdb) - 1.0 GB Kingston DataTraveler 2.0 a x
x > #1 primary 995.2 MB fat32 a x
x a x
x Undo changes to partitions x
x Finish partitioning and write changes to disk
x x x
x <Go Back> x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj


lqqqqqqqqqqqqqqqqqqqqqqqu [!!] Partition disks tqqqqqqqqqqqqqqqqqqqqqqqk
x x
x If you continue, the changes listed below will be written to the x
x disks. Otherwise, you will be able to make further changes manually. x
x x
x The partition tables of the following devices are changed: x
x SCSI1 (0,0,0) (sda) x
x x
x The following partitions are going to be formatted: x
x partition #5 of SCSI1 (0,0,0) (sda) as ext3 x
x partition #6 of SCSI1 (0,0,0) (sda) as swap x
x x
x Write the changes to disks? x
x x
x <Yes>s> <No>> x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj



lqqqqqqqqqqqqqqqqqqqqu [!] Install the base system tqqqqqqqqqqqqqqqqqqqqk
x x
x No installable kernel was found in the defined APT sources. x
x x
x You may try to continue without a kernel, and manually install your x
x own kernel later. This is only recommended for experts, otherwise you x
x will likely end up with a machine that doesn't boot. x
x x
x Continue without installing a kernel? x
x x
x <Go Back> <Yes> <No>
x x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

peeter123
Posts: 37
Joined: Sun Dec 04, 2011 12:38 am
Location: Enschede, the Netherlands

Re: Debian Squeeze/Wheezy on NSA-310

Post by peeter123 » Sat Feb 11, 2012 5:28 pm

It's okay that the installer complains about the kernel, it's by design because we install our kernel in Nand flash. Because our custom box there is no precompiled kernel in apt-sources. Just ignore the warnings and install. Ignore the module warnings. To make them go away, boot, and mkdir /lib/modules/3.2.0

scoobie
Posts: 34
Joined: Wed Jan 11, 2012 11:35 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by scoobie » Sat Feb 11, 2012 9:45 pm

Brilliant, thanks - I'll have another bash tomorrow.

The only other thing I was unsure of was the disk partitioning.

I am installing debian so I can get NBGET etc compiled (which I found to be an impossible task using FunPlug), but I want the bulk of the disk to be available as a network share for my media player etc.

How do you recommend I proceed during the partitioning questions (or from the display below does it look OK?)

Thanks


x Selected for partitioning: x
x x
x SCSI1 (0,0,0) (sda) - ATA WDC WD20EARX-00P: 2.0 TB (2.0 TB) x
x x
x The disk can be partitioned using one of several different schemes. x
x If you are unsure, choose the first one. x
x x
x Partitioning scheme: x
x x
x All files in one partition (recommended for new users)
x x Separate /home partition x
x Separate /home, /usr, /var, and /tmp partitions x
x x
x <Go Back> x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj


lqqqqqqqqqqqqqqqqqqqqqqqqu [!!] Partition disks tqqqqqqqqqqqqqqqqqqqqqqqqq
k x x
x This is an overview of your currently configured partitions and mount x
x points. Select a partition to modify its settings (file system, mount x
x point, etc.), a free space to create partitions, or a device to x
x initialize its partition table. x
x x
x > #3 500.0 MB swap x
x > #4 1.0 MB K biosgrub a x
x > #5 2.0 TB B f ext3 / a x
x > #6 510.9 MB f swap swap a x
x > 8.2 kB FREE SPACE a x
x SCSI3 (0,0,0) (sdb) - 1.0 GB Kingston DataTraveler 2.0 a x
x > #1 primary 995.2 MB fat32 a x
x a x
x Undo changes to partitions x
x Finish partitioning and write changes to disk
x x x
x <Go Back> x

osa
Posts: 26
Joined: Sun Nov 13, 2011 3:31 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by osa » Tue Feb 14, 2012 11:08 pm

How to resolve NAND bug?
I think this is related to this
so, i have changed /drivers/mtd/nand/orion_nand.c

Code: Select all

115         if (board->chip_delay)
116         nc->chip_delay = board->chip_delay;
to this

Code: Select all

115         nc->chip_delay=40;
and now my bootlog looks like this

Code: Select all

NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 459 at 0x000003960000
Creating 9 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "uboot"
0x000000100000-0x000000180000 : "uboot_env"
0x000000180000-0x000000200000 : "key_store"
0x000000200000-0x000000280000 : "info"
0x000000280000-0x000000c80000 : "etc"
0x000000c80000-0x000001680000 : "kernel_1"
0x000001680000-0x000004640000 : "rootfs1"
0x000004640000-0x000005040000 : "kernel_2"
0x000005040000-0x000008000000 : "rootfs2"

scoobie
Posts: 34
Joined: Wed Jan 11, 2012 11:35 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by scoobie » Wed Feb 15, 2012 9:42 am

This is most likely a debian question rather than NSA-310 specific, but maybe someone will put me right!
My partition table was listed as -
#3 500.0 MB swap
#4 1.0 MB K biosgrub
#5 2.0 TB B f ext3 /
#6 510.9 MB f swap swap

But I can't get it to boot (as per instructions setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 bootm 0x800000).
I presume it's partition 5 (but what happened to partitions 1 & 2?)

I have tried sda1 and sda2 - both complain that the device can't be accessed.
Which partition should I use? or how can I find out how where the OS is located without the 2 hour reload?

One last question - how to I locate the 'boot file' that I see some users posting?

Thanks - Mark

peeter123
Posts: 37
Joined: Sun Dec 04, 2011 12:38 am
Location: Enschede, the Netherlands

Re: Debian Squeeze/Wheezy on NSA-310

Post by peeter123 » Wed Feb 15, 2012 2:50 pm

I've updated the uImage-3.2 from the topicstart to include fixes for Nand. Also sensors are now included so no modules needed.

fynfyn
Posts: 17
Joined: Mon Jan 30, 2012 5:57 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by fynfyn » Wed Feb 15, 2012 3:36 pm

This sounds good. Is it possible for you to provide your Kernel-Config?

I would like to use your improvements without loosing my kernel support for NFS and DVB-S.

osa
Posts: 26
Joined: Sun Nov 13, 2011 3:31 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by osa » Thu Feb 16, 2012 10:09 am

@peeter123: have you registered nsa310 archnumber? Nsa320 is already registered (by you?) i don't know if this procedure needs some time or is just automatic
BTW, i got crc error booting your last kernel 3.2 from usb

peeter123
Posts: 37
Joined: Sun Dec 04, 2011 12:38 am
Location: Enschede, the Netherlands

Re: Debian Squeeze/Wheezy on NSA-310

Post by peeter123 » Thu Feb 16, 2012 10:56 am

I've registered the NSA310 and will merge my hardware setup to Peter Schildmann's repository.

PiotrGozdur
Posts: 6
Joined: Wed Feb 08, 2012 6:33 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by PiotrGozdur » Thu Feb 16, 2012 4:59 pm

@peeter123:
You should change the delay in file "nsa310-setup.c":

Code: Select all

kirkwood_nand_init(ARRAY_AND_SIZE(nsa310_nand_parts), 25);
25->40

You can also delete:

Code: Select all

static struct i2c_board_info __initdata nsa310_i2c_rtc = {
        I2C_BOARD_INFO("pcf8563", 0x51),
};

static struct mv643xx_eth_platform_data nsa310_ge00_data = {
.phy_addr = MV643XX_ETH_PHY_ADDR(0),
.speed = SPEED_1000,
.duplex = DUPLEX_FULL,
};
This hardware is not present in nsa310.

Here is my new patch for kernel 3.3-rc3 (v4):
http://pastebin.com/JkpMyjxJ

Does someone tested my LED mod?

fynfyn
Posts: 17
Joined: Mon Jan 30, 2012 5:57 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by fynfyn » Thu Feb 16, 2012 11:08 pm

Hi,
Few minutes ago i completed compiling new kernel with your patches. Everything except lm85 sensors is working like a charm. Can´t get the sensors running. Have no idea why. In Kernel-Config i enabled hwmon and the lm85 driver, but sensors and sensors-detect cant find any sensor. Could anybody help me?

LED-Mod seems to work as expected. Very nice work. And Bad-Blocks are gone. Very nice.

PiotrGozdur
Posts: 6
Joined: Wed Feb 08, 2012 6:33 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by PiotrGozdur » Thu Feb 16, 2012 11:39 pm

Try add red line:
kirkwood_sata_init(&nsa310_sata_data);
kirkwood_uart0_init();
kirkwood_i2c_init();
in "nsa310-setup.c".

I probably have deleted too much.

fynfyn
Posts: 17
Joined: Mon Jan 30, 2012 5:57 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by fynfyn » Thu Feb 16, 2012 11:56 pm

Thank you for your fast reply. I will give it a try after a short break.

I recognized problems with EXT4 Filesystem in the Kernel 3.3-rc3. In got some buffer-problems with the kernel. On 3.2 there are no problems in the same usage. But I will test it and give a feed back.

PiotrGozdur
Posts: 6
Joined: Wed Feb 08, 2012 6:33 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by PiotrGozdur » Fri Feb 17, 2012 1:26 am

Patch v5 with red USB LED support and fixed lm85:
http://pastebin.com/FFVsXzAD

osa
Posts: 26
Joined: Sun Nov 13, 2011 3:31 pm

Re: Debian Squeeze/Wheezy on NSA-310

Post by osa » Fri Feb 17, 2012 12:04 pm

@PiotrGozdur: please update your patch to match registered arcNumbers for nsa310/320

Post Reply