From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2106BC433F5 for ; Fri, 22 Oct 2021 08:19:38 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D98C7610EA for ; Fri, 22 Oct 2021 08:19:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D98C7610EA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5956682D6F; Fri, 22 Oct 2021 10:19:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dooray.com header.i=@dooray.com header.b="FUUWMYBD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8CADB832C6; Fri, 22 Oct 2021 10:19:32 +0200 (CEST) Received: from mscreen.etri.re.kr (mscreen.etri.re.kr [129.254.9.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3356780601 for ; Fri, 22 Oct 2021 10:19:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ckim@etri.re.kr Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 22 Oct 2021 17:19:20 +0900 X-Original-SENDERIP: 211.180.235.152 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: u-boot@lists.denx.de Received: from [10.162.225.112] (HELO smtp002-imp.gov-dooray.com) ([10.162.225.112]) by send001-relay.gov-dooray.com with SMTP id 0196bb3561727408; Fri, 22 Oct 2021 17:19:20 +0900 DKIM-Signature: a=rsa-sha256; b=FUUWMYBDIAMfq/m2wBQrMYXVMePewMOTztOR2kxoIGWpD8W4OEmzeq0b4C25hcYhqD/aWjdNx2 osyoA/UuY4WUWWhiVO7JNpOPDAKm/L4m4PSOHILdZ5yvfD8MLT7ZedaITIn1OWhF6XeTi2MCty9v Vno3aUNQxpNi2cei1V21AIT5G7tyn82HTjzWtLJPuQumC/IgvJg+91jkC0YS692ox3tTf8+/5vck oiru2LTsQ0FRtPDDOB6kae0s/TjIF2SFrgEK/szgso6N3sUrqdfi0JIaPfWorkg2G0r+qauZSirI TKMAPi0HnBvaC5aXGyX7xbhpr5YQ/5YBpvhsSwqw==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=6ZMQgIvy+7zc+NpofhlfMNIAy+1kr+l4XfugZjiwvZs=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp002-imp.gov-dooray.com with SMTP id 19ea556b61727407; Fri, 22 Oct 2021 17:19:20 +0900 From: "Chan Kim" To: "U-Boot Mailing List" Subject: breakpoint not working in do_mmc_read (using qemu) Date: Fri, 22 Oct 2021 17:19:18 +0900 Message-ID: <050a01d7c71d$824be570$86e3b050$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdfHHQnCBT+w9Z9yQbupf28OhqlxJQ== Content-Language: ko Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hello, u-boot experts, =20 I need to modify a proprietary SD card host controller driver to be used = in u-boot and I wanted to see the driver interface with the u-boot using = qemu. Trying to run u-boot on qemu with SD card, I found this nice question : = https://stackoverflow.com/questions/46239926/booting-kernel-from-sd-in-qe= mu-arm-with-u-boot So I followed it and saw =E2=80=98mmc rescan=E2=80=99, =E2=80=98mmc = read=E2=80=99 command works. Using debugger (arm-none-eabi-gdb), I can follow the code from _start = and can set breakpoint at board_init_f and etc.=20 But even if I set breakpoint at do_mmc_read or do_mmc_rescan, the = breakpoint for those functions are not working. Could anyone tell me what I=E2=80=99m doing wrong? (Are there things I = should set in the config?) The qemu command is this : qemu-system-arm -machine vexpress-a9 -cpu cortex-a9 -m 128M -dtb = ~/prj/abdsn/ab21sim/ab21tsim/LinuxDevDrv/linux-5.4.21/arch/arm/boot/dts/v= express-v2p-ca9.dtb -kernel u-boot -sd sd.img -nographic -s -S and the u-boot (ELF file) contains debug_info. Any help will be deeply appreciated. Thanks, Chan Kim p.s. BTW, this email list contains mostly PATCH emails between u-boot = developers, so I feel a little sorry to ask questions here. =F0=9F=98=8A =20