[U-Boot] MTD Partitioning does not work.

2012-04-17 Thread Axel Beierlein

Sorry for Crossposting but i think it better fits here.

Hello,

i have compiled a 3.1.5 Kernel for a TQM5200 Board.
But what i missed is the correct partitioning of the flash after the 
boot. Do i have to use another way as with Kernel 2.4.25?



With Kernel 2.4.25 i define the cmdline like:

Kernel command line: root=/dev/ram rw 
mtdparts=TQM5200-0:512k(u-boot),512k(env),2m(kernel),16m(ramfs1),5m(ramfs2),8m(jffs2) 
ip=192.168.0.50:192.168.0.133:::tqm5200:eth0:off panic=1 
console=ttyS0,115200


= Partitioning no Problem.

Following some informations of my Setup.

My actual U-Boot Parameters for mtdpart:

mtdids=nor0=TQM5200-0
mtdparts=mtdparts=TQM5200-0:512k(u- \
boot),512k(env),2m(kernel),16m(ramfs1),5m(ramfs2),8m(jffs2)

Output in U-Boot:

= mtdpart

device nor0 TQM5200-0, # parts = 6
 #: namesizeoffsetmask_flags
 0: u-boot  0x00080x0
 1: env 0x00080x00080
 2: kernel  0x00200x00100
 3: ramfs1  0x01000x00300
 4: ramfs2  0x00500x01300
 5: jffs2   0x00800x01800

active partition: nor0,0 - (u-boot) 0x0008 @ 0x

defaults:
mtdids  : nor0=TQM5200-0
mtdparts: 
mtdparts=TQM5200-0:512k(u-boot),512k(env),2m(kernel),16m(ramfs1),5m(ramfs2),8m(jffs2)

=

My Kernelconfig Section MTD:

CONFIG_MTD=y
# CONFIG_MTD_DEBUG is not set
# CONFIG_MTD_TESTS is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y
CONFIG_MTD_OF_PARTS=y
# CONFIG_MTD_AR7_PARTS is not set

#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
# CONFIG_SM_FTL is not set
# CONFIG_MTD_OOPS is not set
# CONFIG_MTD_SWAP is not set

#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_MTD_CFI_AMDSTD=y
# CONFIG_MTD_CFI_STAA is not set
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
CONFIG_MTD_ROM=y
# CONFIG_MTD_ABSENT is not set

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
# CONFIG_MTD_PHYSMAP is not set
CONFIG_MTD_PHYSMAP_OF=y
# CONFIG_MTD_PLATRAM is not set

#
# Self-contained MTD device drivers
#
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLOCK2MTD is not set

#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOC2000 is not set
# CONFIG_MTD_DOC2001 is not set
# CONFIG_MTD_DOC2001PLUS is not set
# CONFIG_MTD_NAND is not set
# CONFIG_MTD_ONENAND is not set

#
# LPDDR flash memory drivers
#
# CONFIG_MTD_LPDDR is not set
# CONFIG_MTD_UBI is not set

Thanks in advance

Axel Beierlein
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/1] Adding Configuration option for TQM5200S Board on Goetting

2009-07-24 Thread Axel Beierlein
Signed-off-by: Axel Beierlein beierl...@goetting.de
---
 Makefile|7 +++
 board/tqc/tqm5200/tqm5200.c |9 -
 include/configs/TQM5200.h   |   33 ++---
 3 files changed, 41 insertions(+), 8 deletions(-)

diff --git a/Makefile b/Makefile
index 2a06440..7f197dd 100644
--- a/Makefile
+++ b/Makefile
@@ -764,6 +764,7 @@ Total5200_Rev2_lowboot_config:  unconfig
}
@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
 
+HG43630_config \
 cam5200_config \
 cam5200_niosflash_config \
 fo300_config \
@@ -808,6 +809,12 @@ TQM5200_STK100_config: unconfig
@[ -z $(findstring HIGHBOOT,$@) ] || \
{ echo TEXT_BASE = 0xFFF0 $(obj)board/tqm5200/config.tmp 
; \
}
+   @[ -z $(findstring HG43630,$@) ] || \
+   { echo #define CONFIG_HG43630 $(obj)include/config.h ; \
+ echo #define CONFIG_TQM5200S
$(obj)include/config.h ; \
+ echo #define CONFIG_TQM5200_B   
$(obj)include/config.h ; \
+ $(XECHO) ... TQM5200S on Goetting HG43630 Board ; \
+   }
@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
 
 uc101_config:  unconfig
diff --git a/board/tqc/tqm5200/tqm5200.c b/board/tqc/tqm5200/tqm5200.c
index faa2e02..0d69e86 100644
--- a/board/tqc/tqm5200/tqm5200.c
+++ b/board/tqc/tqm5200/tqm5200.c
@@ -255,6 +255,10 @@ int checkboard (void)
 # error UNKNOWN
 #endif
 
+#ifdef CONFIG_HG43630
+#define CARRIER_NAME HG43630
+#endif
+
puts (  Board:  MODULE_NAME  (TQ-Components GmbH)\n
   on a  CARRIER_NAME  carrier board\n);
 
@@ -646,7 +650,7 @@ void video_get_info_str (int line_number, char *info)
 {
if (line_number == 1) {
strcpy (info,  Board: TQM5200 (TQ-Components GmbH));
-#if defined (CONFIG_STK52XX) || defined (CONFIG_TB5200) || 
defined(CONFIG_FO300)
+#if defined (CONFIG_STK52XX) || defined (CONFIG_TB5200) || 
defined(CONFIG_FO300) || defined(CONFIG_HG43630)
} else if (line_number == 2) {
 #if defined (CONFIG_STK52XX)
strcpy (info, on a STK52xx carrier board);
@@ -657,6 +661,9 @@ void video_get_info_str (int line_number, char *info)
 #if defined (CONFIG_FO300)
strcpy (info, on a FO300 carrier board);
 #endif
+#if defined (CONFIG_HG43630)
+   strcpy (info, on a HG43630 carrier board);
+#endif
 #endif
}
else {
diff --git a/include/configs/TQM5200.h b/include/configs/TQM5200.h
index a4336a7..0f5ff77 100644
--- a/include/configs/TQM5200.h
+++ b/include/configs/TQM5200.h
@@ -71,7 +71,7 @@
/* switch is open */
 #endif /* CONFIG_FO300 */
 
-#ifdef CONFIG_STK52XX
+#if defined(CONFIG_STK52XX)  !defined(CONFIG_HG43630)
 #define CONFIG_PS2KBD  /* AT-PS/2 Keyboard */
 #define CONFIG_PS2MULT /* .. on PS/2 Multiplexer   */
 #define CONFIG_PS2SERIAL   6   /* .. on PSC6   */
@@ -85,6 +85,7 @@
  * 0x5000 - 0x50ff - PCI IO Space
  */
 #ifdef CONFIG_STK52XX
+#ifndef CONFIG_HG43630
 #define CONFIG_PCI 1
 #define CONFIG_PCI_PNP 1
 /* #define CONFIG_PCI_SCAN_SHOW1 */
@@ -96,7 +97,7 @@
 #define CONFIG_PCI_IO_BUS  0x5000
 #define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS
 #define CONFIG_PCI_IO_SIZE 0x0100
-
+#endif/* ifndef(CONFIG_HG43630)*/
 #define CONFIG_NET_MULTI   1
 #define CONFIG_EEPRO1001
 #define CONFIG_SYS_RX_ETH_BUFFER   8  /* use 8 rx buffer on eepro100  */
@@ -132,7 +133,7 @@
 #define CONFIG_ISO_PARTITION
 
 /* USB */
-#if defined(CONFIG_STK52XX) || defined(CONFIG_FO300)
+#if defined(CONFIG_STK52XX) || defined(CONFIG_FO300)  
!defined(CONFIG_HG43630)
 #define CONFIG_USB_OHCI_NEW
 #define CONFIG_SYS_OHCI_BE_CONTROLLER
 #define CONFIG_USB_STORAGE
@@ -196,7 +197,7 @@
 #define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE1
 #endif
 
-#if defined(CONFIG_MINIFAP) || defined(CONFIG_STK52XX) || defined(CONFIG_FO300)
+#if defined(CONFIG_MINIFAP) || defined(CONFIG_STK52XX) || 
defined(CONFIG_FO300) 
 #define CONFIG_CMD_IDE
 #define CONFIG_CMD_FAT
 #define CONFIG_CMD_EXT2
@@ -223,6 +224,11 @@
  */
 #define CONFIG_BOOTDELAY   5   /* autoboot after 5 seconds */
 
+#if defined(CONFIG_HG43630)
+#define CONFIG_AUTOBOOT_KEYED
+#define CONFIG_AUTOBOOT_STOP_STR   HG
+#endif
+
 #define CONFIG_PREBOOT echo; \
echo Type \\\run flash_nfs\\\ to mount root filesystem over NFS; \
echo
@@ -262,6 +268,7 @@
kernel_addr=FC14\0\
ramdisk_addr=FC60\0
 #else  /* !CONFIG_TQM5200_B */
+
 #define ENV_FLASH_LAYOUT   \
fdt_addr=FC0A\0   \
kernel_addr=FC0C\0\
@@ -415,6 +422,15

[U-Boot] U-Boot configuration

2008-08-15 Thread Axel Beierlein
Hello,

we use an TQM5200 Board on an own designed Baseboard than the TB5200 or  
STK52xx.
Do we have to reconfigure the U-boot Source for this new baseboard?
And specially, is it necessary to disable the PCI Bus in the U-Boot  
Sources when we donĀ“t use this Bus?

Axel Beierlein
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/1] Adding bootlimit/bootcount feature for MPC5XXX on TQM5200 Boards

2008-08-15 Thread Axel Beierlein
Tested with TQM5200S on STK52XX.200 Board

Signed-off-by: Axel Beierlein [EMAIL PROTECTED]
---
 cpu/mpc5xxx/cpu.c |   20 
 include/configs/TQM5200.h |1 +
 include/mpc5xxx.h |1 +
 3 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c
index ace1653..d87f42c 100644
--- a/cpu/mpc5xxx/cpu.c
+++ b/cpu/mpc5xxx/cpu.c
@@ -135,3 +135,23 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 #endif
 }
 #endif
+
+#ifdef CONFIG_BOOTCOUNT_LIMIT
+
+void bootcount_store (ulong a)
+{
+ volatile ulong *save_addr = (volatile ulong *)(MPC5XXX_CDM_BRDCRMB);
+
+ *save_addr = (BOOTCOUNT_MAGIC  0x) | a;
+}
+
+ulong bootcount_load (void)
+{
+ volatile ulong *save_addr = (volatile ulong *)(MPC5XXX_CDM_BRDCRMB);
+
+ if ((*save_addr  0x) != (BOOTCOUNT_MAGIC  0x))
+ return 0;
+ else
+ return (*save_addr  0x);
+}
+#endif /* CONFIG_BOOTCOUNT_LIMIT */
diff --git a/include/configs/TQM5200.h b/include/configs/TQM5200.h
index bfb478a..5fb5f80 100644
--- a/include/configs/TQM5200.h
+++ b/include/configs/TQM5200.h
@@ -55,6 +55,7 @@
 #define CONFIG_PSC_CONSOLE 1   /* console is on PSC1   
*/
 #define CONFIG_BAUDRATE115200  /* ... at 115200 bps
*/
 #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
+#define CONFIG_BOOTCOUNT_LIMIT 1
 
 #ifdef CONFIG_FO300
 #define CFG_DEVICE_NULLDEV 1   /* enable null device */
diff --git a/include/mpc5xxx.h b/include/mpc5xxx.h
index 5d11ef0..0f5bee5 100644
--- a/include/mpc5xxx.h
+++ b/include/mpc5xxx.h
@@ -137,6 +137,7 @@
 /* Clock Distribution Module */
 #define MPC5XXX_CDM_JTAGID (MPC5XXX_CDM + 0x)
 #define MPC5XXX_CDM_PORCFG (MPC5XXX_CDM + 0x0004)
+#define MPC5XXX_CDM_BRDCRMB(MPC5XXX_CDM + 0x0008)
 #define MPC5XXX_CDM_CFG(MPC5XXX_CDM + 0x000c)
 #define MPC5XXX_CDM_48_FDC (MPC5XXX_CDM + 0x0010)
 #define MPC5XXX_CDM_SRESET (MPC5XXX_CDM + 0x0020)
-- 
1.5.4.3

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] U-Boot Boot Count Limit

2008-08-11 Thread Axel Beierlein
Hello,

does U-Boot support the Boot Count Limit functionality for a MPC5200?

My last information was that is only supported for MPC8xxx and MPC82xx PPC.


TIA

Axel
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot