This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3356: Question about hello_world.dts

Part Number: AM3356
Other Parts Discussed in Thread: TPS65910

I am currently developing the am3356.

Our model does not need an SD card, so we are working on removing it.

I have one question.

If you look in hello_world.dts

&mmc1 {
status = "okay";
bus-width = <0x4>;
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins_default>;
cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
vmmc-supply = <&vmmcsd_fixed>;
};

The content is basically

Is it possible to remove mmc1 (Sd-card)?

If possible, where should I remove it besides dts and kernel menuconfig?

I removed it from the above two places, but a problem occurred and I am contacting you.

thank you.

  • Hi Gihwan,

    status = "okay";

    You could change "okay" in this line to "disabled", then kernel won't enable the MMC1 interface.

    If you run into problems with this change, please describe the details of the problem and attach the Linux boot log.

  • Hi  Bin Liu

    As advised, I tested using hello_world.dts.

    There was a problem with the part that goes to the linux userspace

    I tested it by adding the PMIC part and the Nana setting part to hello_world, but the result was the same.

    1) hello_world : original file (downloaded from ti site)

    2) hello_word_pinmux : A file with pinmux added as recommended on the TI site

        => linux start ok : linux kernel normal operation ok

        => There is no nand setting, so it stops at the rootfs search part

    =================================================================================
    [ 0.262595] io scheduler cfq registered (default)
    [ 0.263541] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.266058] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 0.268070] console [ttyS0] disabled
    [ 0.268158] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [ 0.837306] console [ttyS0] enabled
    [ 0.841985] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 0.848836] [drm] Initialized drm 1.1.0 20060810
    [ 0.864521] brd: module loaded
    [ 0.872956] loop: module loaded
    [ 0.877128] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 0.885433] i2c /dev entries driver
    [ 0.889883] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 0.936411] oprofile: using arm/armv7
    [ 0.940408] NET: Registered protocol family 17
    [ 0.945231] Key type dns_resolver registered
    [ 0.949752] omap_voltage_late_init: Voltage driver support not added
    [ 0.959733] ThumbEE CPU extension supported.
    [ 0.964047] Registering SWP/SWPB emulation handler
    [ 0.974789] #############g_ubRFSOption[7]###########
    [ 0.979945] UBI error: cannot open mtd NAND.file-system, error -19        <=========================== here 
    [ 0.986064] hctosys: unable to open rtc device (rtc0)
    [ 0.996152] UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
    [ 1.009441] Please append a correct "root=" boot option; here are the available partitions:
    [ 1.017918] 0100 8096 ram0 (driver?)
    [ 1.022621] 0101 8096 ram1 (driver?)
    [ 1.027358] 0102 8096 ram2 (driver?)
    [ 1.032071] 0103 8096 ram3 (driver?)
    [ 1.036819] 0104 8096 ram4 (driver?)
    [ 1.041511] 0105 8096 ram5
    [ 1.045144] mmc0: host does not support reading read-only switch, assuming write-enable
    [ 1.053392] (driver?)
    [ 1.055805] 0106 8096 ram6 (driver?)
    [ 1.060451] 0107 8096 ram7 (driver?)
    [ 1.065184] mmc0: new high speed SDHC card at address 59b4
    [ 1.071255] 0108 8096 ram8 (driver?)
    [ 1.076015] mmcblk0: mmc0:59b4 NCard 7.48 GiB
    [ 1.080898] 0109 8096 ram9 (driver?)
    [ 1.085966] 010a 8096 ram10 (driver?)
    [ 1.090982] mmcblk0: p1 p2 < p5 >
    [ 1.094650] 010b 8096 ram11 (driver?)
    [ 1.100406] 010c 8096 ram12 (driver?)
    =================================================================================

    3) am335x-evm-new : hello_word_pinmux + PMIC (spi) + NAND settings added

        => Normal operation when MMC1 is added

        => When deleting MMC1, the same error as above occurs

    =================================================================================
    [ 0.263321] io scheduler cfq registered (default)
    [ 0.264306] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.267003] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [ 0.269118] console [ttyS0] disabled
    [ 0.269205] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [ 0.865102] console [ttyS0] enabled
    [ 0.869877] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 0.876743] [drm] Initialized drm 1.1.0 20060810
    [ 0.892580] brd: module loaded
    [ 0.900931] loop: module loaded
    [ 0.905015] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 0.914608] i2c /dev entries driver
    [ 0.919435] oprofile: using arm/armv7
    [ 0.923430] NET: Registered protocol family 17
    [ 0.928129] Key type dns_resolver registered
    [ 0.932582] omap_voltage_late_init: Voltage driver support not added
    [ 0.939455] ThumbEE CPU extension supported.
    [ 0.943769] Registering SWP/SWPB emulation handler
    [ 0.951224] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 0.956553] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 0.964083] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
    [ 0.970593] nand: Hynix H27U4G8F2EKA-BM
    [ 0.974453] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
    [ 0.982210] using OMAP_ECC_BCH16_CODE_HW ECC scheme
    [ 0.987228] 12 ofpart partitions found on MTD device 8000000.nand
    [ 0.993618] >>>>>>>>>>>>>RetValue: [0x0]
    [ 0.997583] ulCheckMarkVal read [0xA5]..
    [ 1.001518] g_ubPrinterDPI Read[0x1]..
    [ 1.005280] Reading RFS from partition [].[0xFF].
    [ 1.010105] Loading RFS from partition [7]..
    [ 1.014392] USB Serial Number read from Flash is [0000000000000001] -- 16 bytes
    [ 1.021920] Creating 12 MTD partitions on "8000000.nand":
    [ 1.027365] 0x000000000000-0x000000020000 : "NAND.SPL"
    [ 1.033788] 0x000000020000-0x000000040000 : "NAND.u-boot-spl-os"
    [ 1.040860] 0x000000040000-0x0000000c0000 : "NAND.u-boot"
    [ 1.047444] 0x0000000c0000-0x0000005c0000 : "NAND.kernel"
    [ 1.056077] 0x0000005c0000-0x000002dc0000 : "NAND.UserArea"
    [ 1.080517] 0x000002dc0000-0x000002ec0000 : "NAND.PritnerSetting"
    [ 1.088101] 0x000002ec0000-0x000002fc0000 : "NAND.RawPartition1"
    [ 1.095584] 0x000002fc0000-0x000009fc0000 : "NAND.file-system"
    [ 1.152582] 0x000009fc0000-0x000010fc0000 : "NAND.file-system-1"
    [ 1.209806] 0x000010fc0000-0x000014fc0000 : "NAND.default-elements"
    [ 1.245749] 0x000014fc0000-0x000018fc0000 : "NAND.default-elements1"
    [ 1.281723] 0x000018fc0000-0x0000190c0000 : "NAND.reserve"
    [ 1.305685] tps65910 0-002d: No interrupt support, no core IRQ
    [ 1.333711] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.339844] #############g_ubRFSOption[7]###########
    [ 1.344856] ubi0: attaching mtd7
    [ 1.824828] ubi0: scanning is finished
    [ 1.835509] ubi0 warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 45, need 80
    [ 1.847171] ubi0: attached mtd7 (name "NAND.file-system", size 112 MiB)
    [ 1.853828] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [ 1.860794] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [ 1.867543] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [ 1.874534] ubi0: good PEBs: 896, bad PEBs: 0, corrupted PEBs: 0
    [ 1.880579] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [ 1.887847] ubi0: max/mean erase counter: 4/0, WL threshold: 4096, image sequence number: 205664078
    [ 1.896946] ubi0: available PEBs: 0, total reserved PEBs: 896, PEBs reserved for bad PEB handling: 45
    [ 1.906226] ubi0: background thread "ubi_bgt0d" started, PID 34
    [ 1.912223] hctosys: unable to open rtc device (rtc0)
    [ 1.921265] vmmcsd_fixed: disabling
    [ 1.935523] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 35
    [ 1.965004] UBIFS (ubi0:0): recovery needed
    [ 2.054579] UBIFS (ubi0:0): recovery completed
    [ 2.059230] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [ 2.066686] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [ 2.076664] UBIFS (ubi0:0): FS size: 102723584 bytes (97 MiB, 809 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [ 2.087245] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [ 2.093111] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID E3B779B3-71CD-4798-BE6C-8A9DF4809AA4, small LPT model
    [ 2.106119] VFS: Mounted root (ubifs filesystem) on device 0:14.
    [ 2.113253] devtmpfs: mounted
    [ 2.116775] Freeing unused kernel memory: 392K (c0736000 - c0798000)
    [ 2.202904] Unhandled fault: external abort on non-linefetch (0x1028) at 0xf9e07134       <=========================== here 
    [ 2.210610] pgd = ddc88000
    [ 2.213327] [f9e07134] *pgd=44e11452(bad)
    [ 2.217373] Internal error: : 1028 [#1] PREEMPT ARM
    [ 2.222270] Modules linked in:
    [ 2.225349] CPU: 0 PID: 1 Comm: init Not tainted 4.1.18+ #3
    [ 2.230942] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 2.237061] task: dd85c000 ti: dd856000 task.ti: dd856000
    [ 2.242506] PC is at omap_gpio_output+0x50/0xa0
    [ 2.247056] LR is at omap_gpio_output+0x40/0xa0
    [ 2.251605] pc : [<c03055b4>] lr : [<c03055a4>] psr: 20060093
    [ 2.251605] sp : dd857d78 ip : 00000194 fp : dd857d94
    [ 2.263131] r10: 00000000 r9 : c0375274 r8 : ddbcfac0
    [ 2.268376] r7 : ddbbd058 r6 : 0000000d r5 : a0060013 r4 : dd8d2c64
    [ 2.274929] r3 : f9e07134 r2 : 00000134 r1 : 00002000 r0 : dd8d2c10
    [ 2.281485] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
    [ 2.288737] Control: 10c5387d Table: 9dc88019 DAC: 00000015
    [ 2.294505] Process init (pid: 1, stack limit = 0xdd856210)
    [ 2.300100] Stack: (0xdd857d78 to 0xdd858000)
    =================================================================================

    We will send you the test file attached.

    Please advise what we are doing wrong.

    Test_file.zip