u-boot-brain/common
Stefan Roese 76b5883da2 jffs2/mtdparts: Fix problem with usage from JFFS2 and MTDPARTS together
Currently using JFFS2 with MTDPARTS enabled doesn't work. This is because
mtdparts_init() is available in both files, cmd_mtdparts.c and
cmd_jffs2.c. Please note that in the original cmd_jffs2.c file (before
the jffs2/mtdparts command/file split those 2 different versions
already existed. So this is nothing new. The main problem is that the
variables "current_dev" and "current_partnum" are declared in both
files now. This doesn't work.

This patch now changes the names of those variable to more specific
names: "current_mtd_dev" and "current_mtd_partnum". This is because
this patch also changes the declaration from static to global, so
that they can be used from both files.

Please note that my first tests were not successful. The MTD devices
selected via mtdparts are now accessed but I'm failing to see the
directory listed via the "ls" command. Nothing is displayed. Perhaps
I didn't generate the JFFS2 image correctly (I never used JFFS2 in
U-Boot before). Not sure. Perhaps somebody else could take a look at
this as well. I'll continue looking into this on Monday.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Cc: Ilya Yanok <yanok@emcraft.com>
Cc: Renaud barbier <renaud.barbier@ge.com>
2009-05-28 21:26:00 +02:00
..
bedbug.c common: Move conditional compilation to Makefile 2008-08-13 01:40:38 +02:00
circbuf.c Add support for Siemens SX1 mobile phone; 2004-03-12 00:14:09 +00:00
cmd_ambapp.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_bdinfo.c ARM: fix warning: 'print_eth' defined but not used 2009-03-29 00:54:21 +01:00
cmd_bedbug.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_bmp.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_boot.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_bootldr.c Blackfin: fixup misc warnings such as printf's and missing casts 2009-01-28 13:27:28 -05:00
cmd_bootm.c rename include/zlib.h to include/u-boot/zlib.h 2009-04-04 15:37:54 +02:00
cmd_cache.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_console.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_cplbinfo.c Blackfin: fixup misc warnings such as printf's and missing casts 2009-01-28 13:27:28 -05:00
cmd_dataflash_mmc_mux.c add dataflash mmc mux missing support 2009-04-04 20:42:20 +02:00
cmd_date.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_dcr.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_df.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_diag.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_display.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_doc.c Noisily disable the legacy NAND subsystem. 2009-04-03 15:27:26 -05:00
cmd_dtt.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_eeprom.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_elf.c ppc: cleanup compiler errors/warnings 2009-03-27 20:23:32 +01:00
cmd_ext2.c cmd_ext2.c: fix compile warnings 2009-04-28 08:50:31 +02:00
cmd_fat.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_fdc.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_fdos.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_fdt.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_flash.c Separate mtdparts command from jffs2 2009-03-20 22:39:14 +01:00
cmd_fpga.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_i2c.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_ide.c common: fix inline--weak error spotted by gcc 4.4 2009-05-20 22:36:28 +02:00
cmd_immap.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_irq.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_itest.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_jffs2.c jffs2/mtdparts: Fix problem with usage from JFFS2 and MTDPARTS together 2009-05-28 21:26:00 +02:00
cmd_license.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_load.c Fix quoting bug introduced by commit 74de7aef 2009-04-04 17:58:26 +02:00
cmd_log.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_mac.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_mem.c Eliminate support for using MMC as memory 2009-02-16 18:07:40 -06:00
cmd_mfsl.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_mgdisk.c mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
cmd_mii.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_misc.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_mmc.c cmd_mmc: add support for device command for selecting mmc device 2009-04-04 23:07:19 +02:00
cmd_mp.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_mtdparts.c jffs2/mtdparts: Fix problem with usage from JFFS2 and MTDPARTS together 2009-05-28 21:26:00 +02:00
cmd_nand.c Separate mtdparts command from jffs2 2009-04-28 01:06:24 +02:00
cmd_net.c Fix quoting bug introduced by commit 74de7aef 2009-04-04 17:58:26 +02:00
cmd_nvedit.c netloop: updates for NetLoop 2009-05-15 21:19:02 +02:00
cmd_onenand.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_otp.c Blackfin: drop newline from OTP help 2009-04-02 06:42:08 -04:00
cmd_pci.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_pcmcia.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_portio.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_reginfo.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_reiser.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_sata.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_scsi.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_setexpr.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_sf.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_source.c Add "source" command; prepare removal of "autoscr" command 2009-04-03 22:01:42 +02:00
cmd_spi.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_strings.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_terminal.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_ubi.c UBI: fix return code in ubi_volume_read 2009-05-20 13:01:58 +02:00
cmd_ubifs.c more command usage cleanup 2009-04-04 22:42:54 +02:00
cmd_universe.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_usb.c USB: Add high-speed (480Mb/s) to all USB related outputs 2009-01-28 19:57:31 +01:00
cmd_vfd.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_ximg.c Command usage cleanup 2009-01-28 08:49:52 +01:00
cmd_yaffs2.c Command usage cleanup 2009-01-28 08:49:52 +01:00
command.c command.c: Expose the core of do_help as _do_help to the rest of u-boot. 2009-03-27 21:06:30 +01:00
console.c common/console: avoid ifdef CONFIG_CONSOLE_MUX when it's possible 2009-02-18 00:55:18 +01:00
ddr_spd.c fsl-ddr: add the DDR3 SPD infrastructure 2009-03-30 13:33:50 -05:00
devices.c arm: add uart dcc support 2009-02-22 15:49:28 +01:00
dlmalloc.c Fix merge problems 2008-08-06 14:05:38 +02:00
dlmalloc.src * Code cleanup: 2003-06-27 21:31:46 +00:00
docecc.c common: Move conditional compilation to Makefile 2008-08-13 01:40:38 +02:00
env_common.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
env_dataflash.c rename CFG_ENV macros to CONFIG_ENV 2008-09-10 22:48:06 +02:00
env_eeprom.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
env_embedded.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
env_flash.c rename CONFIG_CMD_ENV to CONFIG_CMD_SAVEENV 2009-02-18 00:47:43 +01:00
env_mgdisk.c mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
env_nand.c rename CONFIG_CMD_ENV to CONFIG_CMD_SAVEENV 2009-02-18 00:47:43 +01:00
env_nowhere.c env_nowhere: Move conditional compilation to Makefile 2008-09-10 22:48:01 +02:00
env_nvram.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
env_onenand.c OneNAND: Add missing mtd info struct before calling onenand_erase() 2008-12-02 13:48:15 -06:00
env_sf.c env_sf: support embedded environments 2008-12-16 00:47:10 +01:00
exports.c Add functions to list of exported functions 2007-08-06 00:45:40 +02:00
fdt_support.c pci: Rename PCI_REGION_MEMORY to PCI_REGION_SYS_MEMORY for clarity 2009-02-07 23:50:04 +01:00
flash.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
hush.c common/{hush, kgdb, serial}.c: build by COBJS-$(...) in Makefile 2009-02-11 23:05:57 +01:00
image.c common/image.c: Relocate strings in tables. 2009-04-04 23:33:12 +02:00
iomux.c IOMUX: Add console multiplexing support. 2008-12-07 01:23:35 +01:00
kgdb.c common/{hush, kgdb, serial}.c: build by COBJS-$(...) in Makefile 2009-02-11 23:05:57 +01:00
lcd.c lcd: Fix compilation warning in common/lcd.c 2009-02-25 20:28:13 +01:00
lynxkdi.c Fix implicit declaration of function 'eth_[gs]etenv_enetaddr' 2009-03-28 20:16:16 +01:00
main.c Remove inline qualifier from show_boot_progress() 2009-05-15 22:04:04 +02:00
Makefile One more fix for building env_embedded.o 2009-04-05 00:18:44 +02:00
memsize.c Sequential accesses to non-existent memory must be synchronized, 2006-11-06 17:06:36 +01:00
miiphyutil.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
s_record.c Initial revision 2002-08-17 09:36:01 +00:00
serial.c common/{hush, kgdb, serial}.c: build by COBJS-$(...) in Makefile 2009-02-11 23:05:57 +01:00
update.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
usb_kbd.c usb : usb_kbd : Populating 'priv' member of USB keyboard device_t structure 2009-01-28 19:57:28 +01:00
usb_storage.c Fix e-mail address of Gary Jennejohn. 2009-05-15 22:11:59 +02:00
usb.c usb_scan_devices: fix output with no devices 2009-01-28 19:57:31 +01:00
xyzModem.c Coding Style cleanup. 2006-08-31 16:46:53 +02:00