Re: suddenly, i can't boot barebox on my beagle xM anymore [ISOLATED]

2012-12-03 Thread Jan Lübbe
Hi, On Sun, 2012-12-02 at 04:24 -0500, Robert P. J. Day wrote: > i've isolated the commit that introduces the apparent booting > problem on my xM: > > $ git show 154496f > commit 154496f736db54123c3f6daaba18809fab54ed9b > Merge: 05d251f bd6d12b > Author: Sascha Hauer > Date: Fri Nov 16 14:02:4

Re: suddenly, i can't boot barebox on my beagle xM anymore [ISOLATED]

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Jan Lübbe wrote: > Hi, > > On Sun, 2012-12-02 at 04:24 -0500, Robert P. J. Day wrote: > > i've isolated the commit that introduces the apparent booting > > problem on my xM: > > > > $ git show 154496f > > commit 154496f736db54123c3f6daaba18809fab54ed9b > > Merge: 05d251f bd6d12

Re: [PATCH 3/5] mci: Allow to specify device name

2012-12-03 Thread Sascha Hauer
On Fri, Nov 30, 2012 at 11:10:30AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 09:06 Fri 30 Nov , Sascha Hauer wrote: > > On Fri, Nov 30, 2012 at 05:57:32AM +0100, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > On 20:02 Thu 29 Nov , Sascha Hauer wrote: > > > > When multiple MMC

Re: [PATCH 2/5] mci: Fix capacity calculation for high capacity MMC cards

2012-12-03 Thread Sascha Hauer
On Thu, Nov 29, 2012 at 08:02:25PM +0100, Sascha Hauer wrote: > For these cards we have to calculate the size using the ext csd > sector count fields. > > Signed-off-by: Sascha Hauer > --- > drivers/mci/mci-core.c | 20 ++-- > 1 file changed, 14 insertions(+), 6 deletions(-) >

Re: [PATCH] MIPS: fix out-of-tree build

2012-12-03 Thread Sascha Hauer
On Fri, Nov 30, 2012 at 06:53:53AM +0400, Antony Pavlov wrote: > The commit > > commit d25d94bea67308e29db895d418f3f1f8153ae2ea > Author: Antony Pavlov > Date: Fri Jun 1 13:23:20 2012 +0400 > > MIPS: make possible board-specific header files > > This patch makes possible to

Re: [PATCH] omap: gpmc: mark hex debug values as such

2012-12-03 Thread Sascha Hauer
On Fri, Nov 30, 2012 at 11:11:12AM +0100, Jan Luebbe wrote: > Also use %p for pointers. > > Signed-off-by: Jan Luebbe > --- Applied, thanks Sascha > arch/arm/mach-omap/gpmc.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/arch/arm/mach-omap/gpmc.c b/arc

Re: suddenly, i can't boot barebox on my beagle xM anymore [ISOLATED]

2012-12-03 Thread Jan Lübbe
On Mon, 2012-12-03 at 03:31 -0500, Robert P. J. Day wrote: > *sigh* ... i *think* i figured out what's happening. in order to > play with barebox on my xM, until recently, i'd done nothing more than > create a single FAT partition on a micro SD card, put MLO and > barebox.bin on it, put it in my x

Re: suddenly, i can't boot barebox on my beagle xM anymore [ISOLATED]

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Jan Lübbe wrote: > On Mon, 2012-12-03 at 03:31 -0500, Robert P. J. Day wrote: > > *sigh* ... i *think* i figured out what's happening. in order to > > play with barebox on my xM, until recently, i'd done nothing more than > > create a single FAT partition on a micro SD card, p

Re: [Patch] ARM/MXS/i.MX28: distinguish POR and wake-up event correctly

2012-12-03 Thread Sascha Hauer
On Fri, Nov 30, 2012 at 12:14:04PM +0100, Juergen Beisert wrote: > When the built-in RTC in the i.MX28 is programmed to wake-up the SoC, the RTC > reports two events: RST and WAKE. RST is okay in this case, because the PMIC > was really powered down. But the real event is the WAKE from the RTC and

Re: suddenly, i can't boot barebox on my beagle xM anymore [ISOLATED]

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Jan Lübbe wrote: > On Mon, 2012-12-03 at 03:31 -0500, Robert P. J. Day wrote: > > *sigh* ... i *think* i figured out what's happening. in order to > > play with barebox on my xM, until recently, i'd done nothing more than > > create a single FAT partition on a micro SD card, p

Re: how does barebox deal with more than one environment?

2012-12-03 Thread Sascha Hauer
On Sat, Dec 01, 2012 at 08:19:26AM -0500, Robert P. J. Day wrote: > On Sat, 1 Dec 2012, Robert P. J. Day wrote: > > > > > writing up a simple barebox exercise for students and on this page: > > > > http://wiki.barebox.org/doku.php?id=user:first_steps > > > > it seems clear(?) that you can define

Re: should i expect trying to mount a cramfs fs to give me a segmentation fault?

2012-12-03 Thread Sascha Hauer
On Sat, Dec 01, 2012 at 11:28:08AM -0500, Robert P. J. Day wrote: > > again, just following along here: > > http://wiki.barebox.org/doku.php?id=user:first_steps > > i created a small cramfs filesystem image: > > $ ls -l crypto.cramfs > -rw-rw-r-- 1 rpjday rpjday 24576 Dec 1 11:19 crypto.cram

Re: suddenly, i can't boot barebox on my beagle xM anymore

2012-12-03 Thread Sascha Hauer
Hi Robert, On Sat, Dec 01, 2012 at 04:18:08PM -0500, Robert P. J. Day wrote: > > a bit embarrassed but, all of a sudden, what used to work just fine > in terms of building and booting barebox on my beagleboard xM (rev C) > doesn't work anymore. > > not that long ago, i documented how easy t

Re: [PATCH 0/2] clk: add always enabled clocks

2012-12-03 Thread Sascha Hauer
On Mon, Dec 03, 2012 at 12:42:23AM +0400, Antony Pavlov wrote: > [PATCH 1/2] clk: add always enabled clocks > [PATCH 2/2] commands: clk_dump: denote always enabled clocks Nice. The clk_dump command looks a bit weird because it suggests that all clocks are disabled. now I can turn them into always

Re: suddenly, i can't boot barebox on my beagle xM anymore

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Sascha Hauer wrote: > I just rechecked, current master works fine for me on my beagle (no > xM though). Just a guess, have you used the barebox-flash-image link > instead of barebox.bin? Since the image is compressed now it becomes > important to use the link (which points to t

kbuild can't build foo/xxx.o

2012-12-03 Thread 张忠山
kbuild in barebox can't built when obj-y += foo/xxx.o But in kernel, It's OK Maybe it should: -- diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index cb46db2..14e471d 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @

Re: Howto known uncompressed length when uncompress_fd_to_buf

2012-12-03 Thread Sascha Hauer
On Fri, Nov 30, 2012 at 07:03:36PM +0800, 张忠山 wrote: > the function uncompress_fd_to_buf has no parameter to return > the uncompressed length, How to get the uncompressed content > length? AFAIK the uncompressed size is not contained in the compressed data You would have to uncompress to a file a

Re: suddenly, i can't boot barebox on my beagle xM anymore

2012-12-03 Thread Sascha Hauer
On Mon, Dec 03, 2012 at 04:50:24AM -0500, Robert P. J. Day wrote: > On Mon, 3 Dec 2012, Sascha Hauer wrote: > > > I just rechecked, current master works fine for me on my beagle (no > > xM though). Just a guess, have you used the barebox-flash-image link > > instead of barebox.bin? Since the image

Re: kbuild can't build foo/xxx.o

2012-12-03 Thread Sascha Hauer
On Mon, Dec 03, 2012 at 05:51:50PM +0800, 张忠山 wrote: > kbuild in barebox can't built when > > obj-y += foo/xxx.o > > But in kernel, It's OK > > Maybe it should: > > -- > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > index cb46

Re: suddenly, i can't boot barebox on my beagle xM anymore

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Sascha Hauer wrote: > On Mon, Dec 03, 2012 at 04:50:24AM -0500, Robert P. J. Day wrote: > > On Mon, 3 Dec 2012, Sascha Hauer wrote: > > > > > I just rechecked, current master works fine for me on my beagle (no > > > xM though). Just a guess, have you used the barebox-flash-imag

Re: [PATCH] Makefile: move ctags and cscope support to a shell script

2012-12-03 Thread Sascha Hauer
On Mon, Dec 03, 2012 at 09:08:56AM +0400, Antony Pavlov wrote: > The scripts/tags.sh file copied from linux-3.6. > > Signed-off-by: Antony Pavlov Making the toplevel Makefile smaller is a good move. Applied, thanks Sascha > --- > Makefile| 111 +-- > scripts/tags

Re: [PATCH] at25: use dev_lseek_default as at24 does

2012-12-03 Thread Sascha Hauer
On Mon, Dec 03, 2012 at 09:46:52AM +0400, Antony Pavlov wrote: > Signed-off-by: Antony Pavlov > --- > drivers/eeprom/at25.c |7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) Applied, thanks Sascha > > diff --git a/drivers/eeprom/at25.c b/drivers/eeprom/at25.c > index 5578c78..9

Re: suddenly, i can't boot barebox on my beagle xM anymore

2012-12-03 Thread Sascha Hauer
On Mon, Dec 03, 2012 at 05:01:43AM -0500, Robert P. J. Day wrote: > On Mon, 3 Dec 2012, Sascha Hauer wrote: > > > On Mon, Dec 03, 2012 at 04:50:24AM -0500, Robert P. J. Day wrote: > > > On Mon, 3 Dec 2012, Sascha Hauer wrote: > > > > > > > I just rechecked, current master works fine for me on my b

[PATCH] correct simple typo, "plarform_init"

2012-12-03 Thread Robert P. J. Day
Signed-off-by: Robert P. J. Day --- no functional change, but it's just an annoying typo. :-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index ea4e37b..e1a8472 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -76,8 +76,8 @@ struct bus_type platform_bu

Re: suddenly, i can't boot barebox on my beagle xM anymore

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Sascha Hauer wrote: > On Mon, Dec 03, 2012 at 05:01:43AM -0500, Robert P. J. Day wrote: > > On Mon, 3 Dec 2012, Sascha Hauer wrote: > > > > > On Mon, Dec 03, 2012 at 04:50:24AM -0500, Robert P. J. Day wrote: > > > > On Mon, 3 Dec 2012, Sascha Hauer wrote: > > > > > > > > > I ju

Re: [PATCH] correct simple typo, "plarform_init"

2012-12-03 Thread Sascha Hauer
On Mon, Dec 03, 2012 at 05:05:34AM -0500, Robert P. J. Day wrote: > > Signed-off-by: Robert P. J. Day > > --- > > no functional change, but it's just an annoying typo. :-) Applied, thanks. Sascha > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c > index ea4e37b..e1a8472 1

[PATCH 1/4] ls command: call stat() only when necessary

2012-12-03 Thread Sascha Hauer
When calling ls in short mode we do not have to call stat() for additional informations because we do not use them. This speeds up ls on filesystems on which stat() is expensive because the barebox filesystem support always has to iterate over the directory tree. Signed-off-by: Sascha Hauer ---

[PATCH 2/4] filetype: Pass bufsize

2012-12-03 Thread Sascha Hauer
Pass the buffer size to the file detection code. This makes sure we do not read past the buffer. This is especially useful for ext filesystem detection as the magic is at byte offset 1080. Also introduce a FILE_TYPE_SAFE_BUFSIZE define which is set to the minimum bufsize the detection code needs to

[PATCH] ext4 filesystem support

2012-12-03 Thread Sascha Hauer
Hi All, The following adds ext4 readonly filesystem support to barebox. The implementation is from U-Boot which recently gained ext4 support. ext filesystems can automatically be detected, so the -t option to mount is not necessary. Some preparation is needed because ext filesystems have their mag

[PATCH 3/4] add ext fs detection support

2012-12-03 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- common/filetype.c |8 include/filetype.h |1 + 2 files changed, 9 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index c1bd11d..748e364 100644 --- a/common/filetype.c +++ b/common/filetype.c @@ -47,6 +47,7 @@ static const struct

[PATCH 4/4] fs: implement initial ext4 support from U-Boot

2012-12-03 Thread Sascha Hauer
The ext4 implementation has been taken from U-Boot with some changes: - No global variables to allow for multiple filesystems to be mounted and multiple files to be open. - remove fs internal link following and use the barebox link implementation. - remove write support. This is incomplete in

[PATCH 1/2] ata: Add i.MX PATA driver support

2012-12-03 Thread Sascha Hauer
Straight forward driver, we only have to configure some additional bits and then use the generic ide support. Signed-off-by: Sascha Hauer --- drivers/ata/Kconfig|7 ++ drivers/ata/Makefile |1 + drivers/ata/pata-imx.c | 203 3 files

[PATCH 2/2] ARM i.MX: Add i.MX51 PATA device support

2012-12-03 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/clk-imx5.c |1 + arch/arm/mach-imx/devices.c|5 + arch/arm/mach-imx/include/mach/devices-imx51.h |5 + arch/arm/mach-imx/include/mach/devices.h |2 +- 4 files changed, 12 insertio

Re: suddenly, i can't boot barebox on my beagle xM anymore

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Sascha Hauer wrote: > make omap3530_beagle_xload_defconfig && make > > > > xload: cp barebox-flash-image /mnt/MLO > > make omap3530_beagle_defconfig && make > > > > barebox: cp barebox-flash-image /mnt/barebox.bin > > > > i did that second copy, but are you sure i should copy

Re: how does barebox deal with more than one environment?

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Sascha Hauer wrote: > On Sat, Dec 01, 2012 at 08:19:26AM -0500, Robert P. J. Day wrote: > > On Sat, 1 Dec 2012, Robert P. J. Day wrote: > > > > > > > > writing up a simple barebox exercise for students and on this page: > > > > > > http://wiki.barebox.org/doku.php?id=user:fir

Re: should i expect trying to mount a cramfs fs to give me a segmentation fault?

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Sascha Hauer wrote: > cramfs was present in barebox very early. I think in some places the > implementation still assumes that the filesystem image is directly > memory mapped. Probably we should investigate and either add a big > warning somewhere or fix it. ok, good to kno

how does one enable barebox's low-level debugging?

2012-12-03 Thread Robert P. J. Day
looking through common/startup.c and decided i wanted to see confirmation of all the initcalls running here: for (initcall = __barebox_initcalls_start; initcall < __barebox_initcalls_end; initcall++) { debug("initcall-> %pS\n", *initcall);

Re: how does one enable barebox's low-level debugging?

2012-12-03 Thread Sascha Hauer
On Mon, Dec 03, 2012 at 10:45:41AM -0500, Robert P. J. Day wrote: > > looking through common/startup.c and decided i wanted to see > confirmation of all the initcalls running here: > > for (initcall = __barebox_initcalls_start; > initcall < __barebox_initcalls_en

Re: how does one enable barebox's low-level debugging?

2012-12-03 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Sascha Hauer wrote: > On Mon, Dec 03, 2012 at 10:45:41AM -0500, Robert P. J. Day wrote: > > > > looking through common/startup.c and decided i wanted to see > > confirmation of all the initcalls running here: > > > > for (initcall = __barebox_initcalls_start; > >

[PATCH 01/18] fs/fs.c: check that fsdev->cdev->dev is not NULL

2012-12-03 Thread Renaud Barbier
Signed-off-by: Renaud Barbier --- fs/fs.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index dc3a6e3..3065440 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -1108,7 +1108,8 @@ static int fs_probe(struct device_d *dev) return ret; if

[PATCH 02/18] UBIFS: preparation

2012-12-03 Thread Renaud Barbier
A new type is added (linux/types.h) in preparation to the introduction of the UBIFS support. Also functions to do bit operations are added. Signed-off-by: Renaud Barbier --- include/linux/bitops.h | 32 include/linux/types.h |2 ++ 2 files changed, 34 inse

[PATCH 10/18] UBIFS: master node

2012-12-03 Thread Renaud Barbier
This patch deals with reading/writing the master node and orphan inodes. Signed-off-by: Renaud Barbier --- fs/ubifs/master.c | 341 + fs/ubifs/orphan.c | 316 + 2 files changed, 657 insertions(+

[PATCH 00/18] UBIFS support

2012-12-03 Thread Renaud Barbier
This patchset adds UBIFS support to Barebox. It includes the core UBIFS support and more recent patches found in the U-boot git tree. It has been tested on a PPC system by mounting a NOR flash UBI volume, copying the kernel to memory and booting it. Bernhard Walle (1): UBIFS: Improve error mess

[PATCH 05/18] UBIFS: file operations

2012-12-03 Thread Renaud Barbier
This file defines all the files/directories operations. It also initializes the driver. Signed-off-by: Renaud Barbier --- fs/ubifs/ubifs.c | 942 ++ 1 files changed, 942 insertions(+), 0 deletions(-) create mode 100644 fs/ubifs/ubifs.c diff

[PATCH 06/18] UBIFS: initialization

2012-12-03 Thread Renaud Barbier
This is the UBIFS initialization and VFS superblock operations. Signed-off-by: Renaud Barbier --- fs/ubifs/super.c | 1200 ++ 1 files changed, 1200 insertions(+), 0 deletions(-) create mode 100644 fs/ubifs/super.c diff --git a/fs/ubifs/super.

[PATCH 15/18] UBIFS: configuration and build directives

2012-12-03 Thread Renaud Barbier
This patch allows to include and build UBIFS. Signed-off-by: Renaud Barbier --- fs/Kconfig|4 fs/Makefile |1 + fs/ubifs/Makefile |9 + 3 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 fs/ubifs/Makefile diff --git a/fs/Kconfig b/fs/Kco

[PATCH 08/18] UBIFS: I/O subsystem

2012-12-03 Thread Renaud Barbier
This support code implements the I/O subsystem helper functions and space management. There is also functions for crc16 calculation and debugging. Signed-off-by: Renaud Barbier --- fs/ubifs/budget.c | 113 +++ fs/ubifs/crc16.c | 60 ++ fs/ubifs/debug.c | 156 +++

[PATCH 17/18] UBIFS: Improve error message when reading superblock failed

2012-12-03 Thread Renaud Barbier
From: Bernhard Walle In addition to the error message also display the error code. I had the problem that my malloc memory was not enough (ENOMEM), and if u-boot had displayed the error code immediately that would have saved me some debugging. Signed-off-by: Bernhard Walle Use ubifs_err instea

[PATCH 18/18] ubifs: Fix memory leak in ubifs_finddir

2012-12-03 Thread Renaud Barbier
From: Stefan Roese This patch fixes a memory leak in ubifs_finddir(). Signed-off-by: Stefan Roese Cc: dev.ma@gmail.com --- fs/ubifs/ubifs.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index bd9ac84..a3ac674 100644 -

[PATCH 07/18] UBIFS: journal

2012-12-03 Thread Renaud Barbier
This code supports the journal manipulation and replay. Signed-off-by: Renaud Barbier --- fs/ubifs/log.c| 104 ++ fs/ubifs/replay.c | 1070 + 2 files changed, 1174 insertions(+), 0 deletions(-) create mode 100644 fs/ubifs/log.c creat

[PATCH 13/18] UBIFS: superblock

2012-12-03 Thread Renaud Barbier
Superblock support functions. Signed-off-by: Renaud Barbier --- fs/ubifs/sb.c | 346 + 1 files changed, 346 insertions(+), 0 deletions(-) create mode 100644 fs/ubifs/sb.c diff --git a/fs/ubifs/sb.c b/fs/ubifs/sb.c new file mode 100644 in

[PATCH 16/18] ubifs bad superblock bug

2012-12-03 Thread Renaud Barbier
From: Lars Poeschel This patch fixes an issue when ubifs reads a bad superblock. Later it tries to free memory, that was not allocated, which freezes u-boot. This is fixed by looking for a non null pointer before free. The message I got before u-boot freezes: UBI: max/mean erase counter: 53/32 U

[PATCH 11/18] UBIFS: recovery

2012-12-03 Thread Renaud Barbier
This file implements a recovery method for unclean un-mounts. Signed-off-by: Renaud Barbier --- fs/ubifs/recovery.c | 1225 +++ 1 files changed, 1225 insertions(+), 0 deletions(-) create mode 100644 fs/ubifs/recovery.c diff --git a/fs/ubifs/recov

[PATCH 14/18] UBIFS: scan

2012-12-03 Thread Renaud Barbier
The scan function determines what nodes are in an eraseblock. Signed-off-by: Renaud Barbier --- fs/ubifs/scan.c | 362 +++ 1 files changed, 362 insertions(+), 0 deletions(-) create mode 100644 fs/ubifs/scan.c diff --git a/fs/ubifs/scan.c b/f

[PATCH] ARM i.MX bbu: Fix wrong buffer free

2012-12-03 Thread Sascha Hauer
buf is still needed, instead mbr should be freed. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/imx-bbu-internal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx-bbu-internal.c b/arch/arm/mach-imx/imx-bbu-internal.c index c34f86f..a36a427 100644

[PATCH] USB ulpi: pass return value

2012-12-03 Thread Sascha Hauer
Pass the return value from ulpi_probe in ulpi_setup instead of returning -1 (which is -EPERM and does not make sense in this context) Signed-off-by: Sascha Hauer --- drivers/usb/otg/ulpi.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/otg/ulpi.c b/driv

Re: [PATCH 2/2] mtd core: call driver write function with complete buffer

2012-12-03 Thread Robert Jarzmik
Sascha Hauer writes: > mtd->write is supposed to loop around pages internally, no need > to do this in mtd_write. This fixes a huge write performance drop > with the m25p80 driver when it was converted to a mtd driver recently. > Since mtd->writesize is 1 for this driver mtd_write ended up doing

Re: [PATCH 00/18] UBIFS support

2012-12-03 Thread Robert Jarzmik
Renaud Barbier writes: > This patchset adds UBIFS support to Barebox. It includes the core UBIFS > support and more recent patches found in the U-boot git tree. > It has been tested on a PPC system by mounting a NOR flash UBI volume, > copying the kernel to memory and booting it. Hi Renaud, Th

barebox initcalls for a beagle xM

2012-12-03 Thread Robert P. J. Day
for possible teaching purposes, i posted the initcalls invoked both for MLO and barebox.bin on my beagle xM: http://www.crashcourse.ca/wiki/index.php/Barebox_initcalls_for_the_xM to perhaps walk folks through the steps of barebox booting. given time, i might expand on that page later to dig i

Nova CPE Krazer Sky Station 5GHz N - CPE Antena Integrada de 18dBi e Com Saída para Antena Externa

2012-12-03 Thread Vendas Krazer Technologies
Lançamento CPE Krazer Sky Station 5GHz N Você cliente pediu que a Krazer fizesse uma nova CPE num formato mais estiloso, pequena, de menor tamanho e que tivesse novas funcionabilidade, mais especificamente acesso fácil ao botão de reset, proteção contra queima e a tão desejada SAÍDA PARA ANTEN

[PATCH] let kbuild build foo/bar.o correctly

2012-12-03 Thread 张忠山
When obj-y has foo/bar.o, kbuild can't generate foo/bar.o according foo/bar.c. Fix this this patch based on linux kernel commit 521cb40b0c44418a4fd36dc633f575813d59a43d Signed-off-by: 张忠山 --- scripts/Makefile.lib |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sc

Re: Howto known uncompressed length when uncompress_fd_to_buf

2012-12-03 Thread 张忠山
In message <20121203095534.gl10...@pengutronix.de> Sascha Hauer wrote: > On Fri, Nov 30, 2012 at 07:03:36PM +0800, 张忠山 wrote: > > the function uncompress_fd_to_buf has no parameter to return > > the uncompressed length, How to get the uncompressed content > > length? > > AFAIK the uncompressed size

what meaning of command function return val

2012-12-03 Thread 张忠山
When write a command function do_xxx. When all right it should return zero. But when error, It should return a negtive value or a positive value? And what difference between neg-val and pos-val? -- Best Regards, zzs ___ barebox mailing list barebox

Re: what meaning of command function return val

2012-12-03 Thread Sascha Hauer
On Tue, Dec 04, 2012 at 10:54:54AM +0800, 张忠山 wrote: > When write a command function do_xxx. > > When all right it should return zero. > > But when error, It should return a negtive value or a positive value? > And what difference between neg-val and pos-val? Traditionally only positive error va

Re: Howto known uncompressed length when uncompress_fd_to_buf

2012-12-03 Thread Sascha Hauer
On Tue, Dec 04, 2012 at 09:42:42AM +0800, 张忠山 wrote: > In message <20121203095534.gl10...@pengutronix.de> Sascha Hauer wrote: > > On Fri, Nov 30, 2012 at 07:03:36PM +0800, 张忠山 wrote: > > > the function uncompress_fd_to_buf has no parameter to return > > > the uncompressed length, How to get the unc