• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 12
61  Linux Stuff / Kernel / Re: 3.1.4 new kernel available on: December 10, 2011, 02:38:48 PM
Biker,
Changing
CONFIG_OPROFILE=y
to
CONFIG_OPROFILE=m

gets it compiled
62  Linux Stuff / Kernel / Re: 3.1.4 new kernel available on: December 10, 2011, 04:53:33 AM
Quote
`oprofile_arch_exit' referenced in section `.init.text' o ...
I gave up and removed CONFIG_OPROFILE=y

With my .config and patches all then builds for a Dreamplug
63  Linux Stuff / Kernel / Re: 3.1.4 new kernel available on: December 09, 2011, 06:49:17 PM
Quote
I think I'll go ahead and make no significant changes to the 3.1.5 release.

Smart move. However, at 3.1.5 the mvsdio2 patch needs updating

@@ -263,6 +263,15 @@

becomes

@@ -388,6 +388,15 @@

(I think)
64  Linux Stuff / Kernel / Re: 3.1.4 new kernel available on: December 09, 2011, 04:35:43 PM
Quote
I think I have located the 2 lines of code ...

Quote
spinifex, what's the word on this?


Not what I thought. The theory did not stand up to the test.

Where things are at
I am at the moment (slowly) working through the mountain of DreamPlug patches and will try to reconcile these down to a minimum.
You can help me by telling me the origin of linux-3.0-SDIO-micro-AP.patch and 0003-Initial-defconfig.patch. I would also like to know how you maintain the Dreamplug .config from version to version.

The one patch that I have tested (a lot) is the SPI patch (http://www.solinno.co.uk/public/dreamplug/0001-arm-kirkwood-dreamplug-support.patch), it seems good.  The same code exists in various other patches. The only thing I have not tested (for fear of trashing a Dreamplug) is updating u-Boot (via dd if=uboot.kwb of=/dev/mtd0), but my reading of code/dumps is that it will work. I can dd the uboot from (read) from /dev/mtd0.

Re: mkinitcpio. I think including this in the updater is a good idea. (Some say that mkinitcpio initrd gives a faster boot on a SheevaPlug.) If you do this, may I suggest that you add instructions for installing mkinitcpio on Debian.

Googling around: there are reports that the cpu scaling patch does nothing.

And last, CONFIG_SATA_MV=y; it has now been tested on 2 more SATA drives.

65  Linux Stuff / Kernel / Re: Dreamplug patches on: December 08, 2011, 06:42:42 PM
Quote
spinifex.  Why don't you see if you can patch plugenv for the dreamplug with the mtd driver.
?

I had a quick look. I do not think it is necessary. It is simpler maybe than you think with the kernel patch.

e.g.
Code:

# cat /dev/mtd0 |hexdump -C -s 0x30000 -n 4096

00030000  c5 65 07 f9 73 65 72 6e  6f 3d 44 53 32 2d 31 31  |.e..serno=DS2-11|
00030010  31 33 2d 30 30 30 35 36  34 00 62 6f 6f 74 64 65  |13-000564.bootde|
00030020  6c 61 79 3d 33 00 62 61  75 64 72 61 74 65 3d 31  |lay=3.baudrate=1|
00030030  31 35 32 30 30 00 65 74  68 61 64 64 72 3d 46 30  |15200.ethaddr=F0|
00030040  3a 41 44 3a 34 45 3a 30  30 3a 37 39 3a 42 31 00  |:AD:4E:00:
...
000306e0  62 5f 62 6f 6f 74 63 6d  64 32 00 00 73 65 72 69  |b_bootcmd2..seri|
000306f0  61 6c 00 65 74 68 61 63  74 3d 65 67 69 67 61 30  |al.ethact=egiga0|
00030700  00 00 00 00 4e 75 6d 62  65 72 20 32 36 35 39 00  |....Number 2659.|
00030710  00 66 73 3a 65 74 68 31  3a 6f 66 66 00 00 00 00  |.fs:eth1:off....|
00030720  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

# mtd_debug info /dev/mtd0
mtd.type = MTD_NORFLASH
mtd.flags = MTD_CAP_NORFLASH
mtd.size = 524288 (512K)
mtd.erasesize = 4096 (4K)
mtd.writesize = 1
mtd.oobsize = 0
regions = 0

# mtd_debug info /dev/mtd1
mtd.type = MTD_NORFLASH
mtd.flags = MTD_CAP_NORFLASH
mtd.size = 65536 (64K)
mtd.erasesize = 4096 (4K)
mtd.writesize = 1
mtd.oobsize = 0
regions = 0

i.e. no transalations required.

66  Linux Stuff / Kernel / Re: Dreamplug patches on: December 07, 2011, 10:11:36 PM
Further to this I have tested the SPI patch and it works beautifully!

This means that in many cases there is no need for a JTAG on a Dreamplug. The patch allows fast, easy display and update of the u-Boot environment.

Using fw_printenv/fw_setenv from u-boot-tools

Code:
# apt-get install u-boot-tools

and with

Code:
# cat /etc/fw_env.config

# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name       Device offset   Env. size       Flash sector size
/dev/mtd0                   0x30000          0x1000         0x1000
I am not sure why the offset of 0x30000, but it works.
/dev/mtd1 seems to be all 0xFF

I am guessing that this will change depending on your version u-Boot.


Versions:
U-Boot 2011.06-02334-g8f495d9-dirty (Mar 28 2011 - 05:21:06)
Debian Wheezy
Linux 3.1.4
67  Linux Stuff / Kernel / Dreamplug patches on: December 07, 2011, 08:13:19 PM
There are some interesting kernel patches around for the Dreamplug.
Check these urls

http://www.newit.co.uk/forum/index.php/topic,2574.0.html and http://www.solinno.co.uk/public/dreamplug/

http://people.debian.org/~zumbi/dreamplug/
https://github.com/bauermann/freedom-maker/tree/bauermann-improvs/kernel


There is a CPU frequency scaling patch (which is also applicable to the Sheevaplug), my understanding is that the CPU drops to 400MHz when unloaded. This is interesting for even lower power usage by Sheeva and Dreamplugs.

There is also a patch for SPI/NOR support on the Dreamplug. This produces /dev/mtd for the Dreamplug and potentially means that the Dreamplug u-boot environment can be read/written without a JTAG. I have this patch installed, but I have not yet figured out the finer details.

68  Linux Stuff / Linux distributions / uaputl for Dreamplug on: December 06, 2011, 08:05:29 PM
The dreamplug uaputl and uapevent wifi utlities are now available as a Debian Wheezy packages.

apt-get install uaputl
apt-get install uapevent
69  General Category / General Discussion / Re: Bricked Sheeva (esata) on: December 06, 2011, 06:00:00 AM
See http://www.plugcomputer.org/plugforum/index.php?topic=3680.msg19578#new
70  Linux Stuff / Kernel / Re: 3.1.4 new kernel available on: December 05, 2011, 07:08:58 PM
Methinks that our logic(s) on ESATA were both wrong.

If the ESATA is plugged in at boot time on current model Dreamplugs then the ESATA will be /dev/sda.

On some earlier Dreamplugs this does not happen (not sure why).
If anyone has a different experience, please let us know.

Changing to CONFIG_SATA_MV=y has no impact on the boot order. The order of devices remains the same. The only thing that changes is that the kernel will no longer panic when you try to boot from the ESATA. So the change would not disrupt anyone using the ESATA as a data drive.

I think I have located the 2 lines of code in the kernel which will change this boot order behaviour, I will test and let you know. However, I am thinking that the current Dreamplug default behaviour of always making ESATA sda has the benefit of no u-Boot changes required when using the ESATA as the rootfs. As it stands, on the Dreamplugs that I have, ( DS2-1122-* & DS2-1113-*) they will not boot if the ESATA is connected at power up time, unless you make u-Boot changes.



71  Linux Stuff / Kernel / Re: 3.1.4 new kernel available on: December 03, 2011, 05:35:56 PM
Quote
If there's enough interest in this, I could change the updater to automatically run mkinitcpio (if it's installed).

I had a look at this, and having struggled with the debian installer result (which uses initrd), I am of the view that a simple uImage is so much better on a plug (Sheeva or Dream).

The alternative is that I clone your .config and build (natively) a DreamPlug kernel for each of your kernel releases. I am halfway there already, in that I build the SDLAN wifi drivers for each Dreamplug kernel anyway. So if there is enough interest I will do this.
72  Linux Stuff / Kernel / Re: 3.1.4 new kernel available on: December 03, 2011, 03:38:34 PM
Quote
So for the greater good, I think I'll leave it as it is.

The reason I asked for the change was not for me.  I now know a growing number of users that find the current behaviour confusing.

Quote
I prefer not to use initrd's,
I have got no idea how to make one. Any references?
73  Linux Stuff / Kernel / Re: 3.1.4 new kernel available on: December 03, 2011, 02:32:22 PM
It changes boot order, it seems, only when the Drive is connected (plugged in).
No esata, no change.
I am running this kernel on a Multiboot dreamplug (uSD/SD), no u-Boot environment changes.
All cool.
Whilst there are u-Boot issues with eSATA, methinks the Marvell kernel stuff is pretty good.
Without this change, you would need an initrd to boot from the esata connection.
74  Linux Stuff / Kernel / Re: 3.1.4 new kernel available on: December 02, 2011, 07:56:22 PM
Hi cbxbiker61,

To use a SATA drive as the rootfs on a Dreamplug, I need the following change in dream-$KVer.config
 
< CONFIG_SATA_MV=m
---
> CONFIG_SATA_MV=y

I have built a kernel with =y and it tests ok.

Without this mod, I get kernel panics.
75  Hardware and U-Boot firmware / Hardware / Dreamplug Blinking power LED on: November 28, 2011, 05:49:24 PM
I have a Dreamplug that when up powered does nothing more than than blink the green power LED at approx. one second intervals.
No JTAG activity, no boot, no nothing.
Does anyone know what this means?
Pages: 1 ... 3 4 [5] 6 7 ... 12